Package tvi.webrtc
Enum Class PeerConnection.SdpSemantics
- All Implemented Interfaces:
Serializable
,Comparable<PeerConnection.SdpSemantics>
,Constable
- Enclosing class:
- PeerConnection
Java version of webrtc::SdpSemantics.
Configure the SDP semantics used by this PeerConnection. By default, this
is UNIFIED_PLAN which is compliant to the WebRTC 1.0 specification. It is
possible to overrwite this to the deprecated PLAN_B SDP format, but note
that PLAN_B will be deleted at some future date, see
https://crbug.com/webrtc/13528.
UNIFIED_PLAN will cause PeerConnection to create offers and answers with
multiple m= sections where each m= section maps to one RtpSender and one
RtpReceiver (an RtpTransceiver), either both audio or both video. This
will also cause PeerConnection to ignore all but the first a=ssrc lines
that form a Plan B stream.
PLAN_B will cause PeerConnection to create offers and answers with at most
one audio and one video m= section with multiple RtpSenders and
RtpReceivers specified as multiple a=ssrc lines within the section. This
will also cause PeerConnection to ignore all but the first m= section of
the same media type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PeerConnection.SdpSemantics
Returns the enum constant of this class with the specified name.static PeerConnection.SdpSemantics[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAN_B
Deprecated. -
UNIFIED_PLAN
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-