Package dev.onvoid.webrtc
Enum RTCRtcpMuxPolicy
java.lang.Object
java.lang.Enum<RTCRtcpMuxPolicy>
dev.onvoid.webrtc.RTCRtcpMuxPolicy
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RTCRtcpMuxPolicy>
,java.lang.constant.Constable
public enum RTCRtcpMuxPolicy extends java.lang.Enum<RTCRtcpMuxPolicy>
The RtcpMuxPolicy affects what ICE candidates are gathered to support
non-multiplexed RTCP.
- Author:
- Alex Andres
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static RTCRtcpMuxPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RTCRtcpMuxPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEGOTIATE
Gather ICE candidates for both RTP and RTCP candidates. If the remote-endpoint is capable of multiplexing RTCP, multiplex RTCP on the RTP candidates. If it is not, use both the RTP and RTCP candidates separately. Note that, the user agent MAY not implement non-multiplexed RTCP, in which case it will reject attempts to construct an RTCPeerConnection with the negotiate policy. -
REQUIRE
Gather ICE candidates only for RTP and multiplex RTCP on the RTP candidates. If the remote endpoint is not capable of rtcp-mux, session negotiation will fail.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-