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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    NEGOTIATE
    Gather ICE candidates for both RTP and RTCP candidates.
    REQUIRE
    Gather ICE candidates only for RTP and multiplex RTCP on the RTP candidates.
  • 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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NEGOTIATE

      public static final RTCRtcpMuxPolicy 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

      public static final RTCRtcpMuxPolicy 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

      public static RTCRtcpMuxPolicy[] 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

      public static RTCRtcpMuxPolicy valueOf​(java.lang.String name)
      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 name
      java.lang.NullPointerException - if the argument is null