Module webrtc.java

Enum Class RTCRtpTransceiverDirection

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

public enum RTCRtpTransceiverDirection extends Enum<RTCRtpTransceiverDirection>
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 Constants
    Enum Constant
    Description
    The 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SEND_RECV

      public static final RTCRtpTransceiverDirection 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

      public static final RTCRtpTransceiverDirection 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

      public static final RTCRtpTransceiverDirection 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

      public static final RTCRtpTransceiverDirection 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

      public static final RTCRtpTransceiverDirection 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

      public static RTCRtpTransceiverDirection[] 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 RTCRtpTransceiverDirection 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