Module webrtc.java

Enum Class RTCSignalingState

java.lang.Object
java.lang.Enum<RTCSignalingState>
dev.onvoid.webrtc.RTCSignalingState
All Implemented Interfaces:
Serializable, Comparable<RTCSignalingState>, Constable

public enum RTCSignalingState extends Enum<RTCSignalingState>
Describes the state of the signaling process on the local end of the RTCPeerConnection.
Author:
Alex Andres
  • Enum Constant Details

    • STABLE

      public static final RTCSignalingState STABLE
      There is no offer/answer exchange in progress. This is also the initial state, in which case the local and remote descriptions are empty.
    • HAVE_LOCAL_OFFER

      public static final RTCSignalingState HAVE_LOCAL_OFFER
      A local description, of type "offer", has been successfully applied.
    • HAVE_LOCAL_PR_ANSWER

      public static final RTCSignalingState HAVE_LOCAL_PR_ANSWER
      A remote description of type "offer" has been successfully applied and a local description of type "pranswer" has been successfully applied.
    • HAVE_REMOTE_OFFER

      public static final RTCSignalingState HAVE_REMOTE_OFFER
      A remote description, of type "offer", has been successfully applied.
    • HAVE_REMOTE_PR_ANSWER

      public static final RTCSignalingState HAVE_REMOTE_PR_ANSWER
      A local description of type "offer" has been successfully applied and a remote description of type "pranswer" has been successfully applied.
    • CLOSED

      public static final RTCSignalingState CLOSED
      The RTCPeerConnection has been closed.
  • Method Details

    • values

      public static RTCSignalingState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RTCSignalingState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null