- java.lang.Object
-
- java.lang.Enum<RTCSdpType>
-
- dev.onvoid.webrtc.RTCSdpType
-
- All Implemented Interfaces:
Serializable,Comparable<RTCSdpType>
public enum RTCSdpType extends Enum<RTCSdpType>
The RTCSdpType describes the type of anRTCSessionDescription.- Author:
- Alex Andres
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANSWERIndicates that a description MUST be treated as an SDP final answer, and the offer-answer exchange MUST be considered complete.OFFERIndicates that a description MUST be treated as an SDP offer.PR_ANSWERIndicates that a description MUST be treated as an SDP answer, but not a final answer.ROLLBACKIndicates 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RTCSdpTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RTCSdpType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
-