Module webrtc.java

Enum RTCSdpType

    • Enum Constant Detail

      • OFFER

        public static final RTCSdpType OFFER
        Indicates that a description MUST be treated as an SDP offer.
      • PR_ANSWER

        public static final RTCSdpType PR_ANSWER
        Indicates that a description MUST be treated as an SDP answer, but not a final answer. A description used as an SDP PrAnswer may be applied as a response to an SDP offer, or an update to a previously sent SDP PrAnswer.
      • ANSWER

        public static final RTCSdpType ANSWER
        Indicates that a description MUST be treated as an SDP final answer, and the offer-answer exchange MUST be considered complete. A description used as an SDP answer may be applied as a response to an SDP offer or as an update to a previously sent SDP PrAnswer.
      • ROLLBACK

        public static final RTCSdpType ROLLBACK
        Indicates that a description MUST be treated as canceling the current SDP negotiation and moving the SDP offer and answer back to what it was in the previous stable state. Note the local or remote SDP descriptions in the previous stable state could be null if there has not yet been a successful offer-answer negotiation.
    • Method Detail

      • values

        public static RTCSdpType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RTCSdpType c : RTCSdpType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RTCSdpType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null