forked from pion/webrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtcdatachannelinit.go
36 lines (29 loc) · 1.41 KB
/
rtcdatachannelinit.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package webrtc
// RTCDataChannelInit can be used to configure properties of the underlying
// channel such as data reliability.
type RTCDataChannelInit struct {
// Ordered indicates if data is allowed to be delivered out of order. The
// default value of true, guarantees that data will be delivered in order.
Ordered *bool
// MaxPacketLifeTime limits the time (in milliseconds) during which the
// channel will transmit or retransmit data if not acknowledged. This value
// may be clamped if it exceeds the maximum value supported.
MaxPacketLifeTime *uint16
// MaxRetransmits limits the number of times a channel will retransmit data
// if not successfully delivered. This value may be clamped if it exceeds
// the maximum value supported.
MaxRetransmits *uint16
// Protocol describes the subprotocol name used for this channel.
Protocol *string
// Negotiated describes if the data channel is created by the local peer or
// the remote peer. The default value of false tells the user agent to
// announce the channel in-band and instruct the other peer to dispatch a
// corresponding RTCDataChannel. If set to true, it is up to the application
// to negotiate the channel and create an RTCDataChannel with the same id
// at the other peer.
Negotiated *bool
// ID overrides the default selection of ID for this channel.
ID *uint16
// Priority describes the priority of this channel.
Priority *RTCPriorityType
}