Package tel.schich.libdatachannel
Class DataChannelInitSettings
java.lang.Object
tel.schich.libdatachannel.DataChannelInitSettings
The
DataChannel initialization settings.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotocol()stream()withNegotiated(boolean negotiated) if true, the Data Channel is assumed to be negotiated by the user and won't be negotiated by the WebRTC layerwithProtocol(String protocol) (optional): a user-defined UTF-8 string representing the Data Channel protocol, empty if NULLwithReliability(DataChannelReliability reliability) withStream(Integer stream) if manualStream is true, the Data Channel will use it as stream ID, else it is ignored
-
Field Details
-
DEFAULT
-
-
Method Details
-
reliability
-
withReliability
-
withProtocol
(optional): a user-defined UTF-8 string representing the Data Channel protocol, empty if NULL- Parameters:
protocol- the protocol to indicate- Returns:
- fluent interface
-
protocol
-
withNegotiated
if true, the Data Channel is assumed to be negotiated by the user and won't be negotiated by the WebRTC layer- Parameters:
negotiated- whether the channel is user-negotiated- Returns:
- fluent interface
-
isNegotiated
public boolean isNegotiated() -
withStream
if manualStream is true, the Data Channel will use it as stream ID, else it is ignored- Parameters:
stream- the stream id- Returns:
- fluent interface
-
stream
-