public enum MediaDirection extends Enum<MediaDirection>
Enum Constant and Description |
---|
NONE
No Direction
|
RECV_ONLY
Receive only.
|
SEND_ONLY
Send only.
|
SEND_RECV
Both Send and Receive.
|
Modifier and Type | Method and Description |
---|---|
static MediaDirection |
getMediaDirection(String value)
Gets MediaDirection by SDP attribute value.
|
MediaDirection |
getOppositeDirection()
Gets the opposite media direction.
|
String |
getValue()
Gets the value.
|
String |
toString() |
static MediaDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaDirection NONE
public static final MediaDirection SEND_RECV
public static final MediaDirection SEND_ONLY
public static final MediaDirection RECV_ONLY
public static MediaDirection[] values()
for (MediaDirection c : MediaDirection.values()) System.out.println(c);
public static MediaDirection valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public MediaDirection getOppositeDirection()
public static MediaDirection getMediaDirection(String value)
value
- SDP attribute valuepublic String toString()
toString
in class Enum<MediaDirection>