Class RTCDataChannelInit

java.lang.Object
dev.onvoid.webrtc.RTCDataChannelInit

public class RTCDataChannelInit
extends java.lang.Object
The RTCDataChannelInit describes options to configure a RTCDataChannel.
Author:
Alex Andres
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int id
    Overrides the default selection of ID for this channel.
    int maxPacketLifeTime
    Limits the time (in milliseconds) during which the channel will transmit or retransmit data if not acknowledged.
    int maxRetransmits
    Limits the number of times a channel will retransmit data if not successfully delivered.
    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.
    boolean ordered
    If set to false, data is allowed to be delivered out of order.
    RTCPriorityType priority
    Priority of this channel.
    java.lang.String protocol
    Sub-protocol name used for this channel.
  • Constructor Summary

    Constructors 
    Constructor Description
    RTCDataChannelInit()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 java.lang.String protocol
      Sub-protocol name used for this channel.
    • priority

      public RTCPriorityType priority
      Priority of this channel.
  • Constructor Details