- All Implemented Interfaces:
Serializable
,Comparable<RTCRtpTransceiverDirection>
,Constable
Indicates the RTCRtpTransceiver's preferred directionality.
- Author:
- Alex Andres
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe RTCRtpTransceiver's RTCRtpSender will not offer to send RTP, and will not send RTP.The RTCRtpTransceiver's RTCRtpSender will not offer to send RTP, and will not send RTP.The RTCRtpTransceiver's RTCRtpSender sender will offer to send RTP, and will send RTP if the remote peer accepts and sender.getParameters().encodings[i].active is true for any value of i.The RTCRtpTransceiver's RTCRtpSender will offer to send RTP, and will send RTP if the remote peer accepts and sender.getParameters().encodings[i].active is true for any value of i.The RTCRtpTransceiver will neither send nor receive RTP. -
Method Summary
Modifier and TypeMethodDescriptionstatic RTCRtpTransceiverDirection
Returns the enum constant of this class with the specified name.static RTCRtpTransceiverDirection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SEND_RECV
The RTCRtpTransceiver's RTCRtpSender will offer to send RTP, and will send RTP if the remote peer accepts and sender.getParameters().encodings[i].active is true for any value of i.The RTCRtpTransceiver's RTCRtpReceiver will offer to receive RTP, and will receive RTP if the remote peer accepts.
-
SEND_ONLY
The RTCRtpTransceiver's RTCRtpSender sender will offer to send RTP, and will send RTP if the remote peer accepts and sender.getParameters().encodings[i].active is true for any value of i.The RTCRtpTransceiver's RTCRtpReceiver will not offer to receive RTP, and will not receive RTP.
-
RECV_ONLY
The RTCRtpTransceiver's RTCRtpSender will not offer to send RTP, and will not send RTP.The RTCRtpTransceiver's RTCRtpReceiver will offer to receive RTP, and will receive RTP if the remote peer accepts.
-
INACTIVE
The RTCRtpTransceiver's RTCRtpSender will not offer to send RTP, and will not send RTP.The RTCRtpTransceiver's RTCRtpReceiver will not offer to receive RTP, and will not receive RTP.
-
STOPPED
The RTCRtpTransceiver will neither send nor receive RTP. It will generate a zero port in the offer. In answers, its RTCRtpSender will not offer to send RTP, and its RTCRtpReceiver will not offer to receive RTP. This is a terminal state.
-
-
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
-