- java.lang.Object
-
- dev.onvoid.webrtc.RTCDataChannelInit
-
public class RTCDataChannelInit extends Object
The RTCDataChannelInit describes options to configure aRTCDataChannel.- Author:
- Alex Andres
-
-
Field Summary
Fields Modifier and Type Field Description intidOverrides the default selection of ID for this channel.intmaxPacketLifeTimeLimits the time (in milliseconds) during which the channel will transmit or retransmit data if not acknowledged.intmaxRetransmitsLimits the number of times a channel will retransmit data if not successfully delivered.booleannegotiatedThe default value of false tells the application to announce the channel in-band and instruct the other peer to dispatch a corresponding RTCDataChannel.booleanorderedIf set to false, data is allowed to be delivered out of order.RTCPriorityTypepriorityPriority of this channel.StringprotocolSub-protocol name used for this channel.
-
Constructor Summary
Constructors Constructor Description RTCDataChannelInit()
-
-
-
Field Detail
-
ordered
public boolean ordered
If set to false, data is allowed to be delivered out of order. The default value of true, guarantees that data will be delivered in order.
-
negotiated
public boolean negotiated
The default value of false tells the application 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.
-
maxPacketLifeTime
public int 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 by the user agent.
-
maxRetransmits
public int 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 by the user agent. Note: Cannot be set along with maxPacketLifeTime.
-
id
public int id
Overrides the default selection of ID for this channel.
-
protocol
public String protocol
Sub-protocol name used for this channel.
-
priority
public RTCPriorityType priority
Priority of this channel.
-
-