mirror of
				https://github.com/pion/webrtc.git
				synced 2025-10-31 18:52:55 +08:00 
			
		
		
		
	 721b342e2e
			
		
	
	721b342e2e
	
	
	
		
			
			Before we computed DataChannel IDs before signaling, this is incorrect because IDs must take into account if we are running an DTLS Client or Server. This updates the DataChannel ID generation code to take this into account before generating a streamId. Resolves #908
		
			
				
	
	
		
			13 lines
		
	
	
		
			449 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			449 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package webrtc
 | |
| 
 | |
| // DataChannelParameters describes the configuration of the DataChannel.
 | |
| type DataChannelParameters struct {
 | |
| 	Label             string  `json:"label"`
 | |
| 	Protocol          string  `json:"protocol"`
 | |
| 	ID                *uint16 `json:"id"`
 | |
| 	Ordered           bool    `json:"ordered"`
 | |
| 	MaxPacketLifeTime *uint16 `json:"maxPacketLifeTime"`
 | |
| 	MaxRetransmits    *uint16 `json:"maxRetransmits"`
 | |
| 	Negotiated        bool    `json:"negotiated"`
 | |
| }
 |