|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MediaDirection>
net.java.sip.communicator.service.neomedia.MediaDirection
public enum MediaDirection
The MediaDirections enumeration contains a list of media directions that indicate read/write capabilities of different entities in this MediaService such as for example devices.
| Enum Constant Summary | |
|---|---|
INACTIVE
Indicates that the related entity does not support neither input nor output (i.e. |
|
RECVONLY
Represents a direction pointing to the entity that this object pertains to and from the outside. |
|
SENDONLY
Represents a direction from the entity that this direction pertains to to the outside. |
|
SENDRECV
Indicates that the related entity supports both input and output (send and receive) operations. |
|
| Method Summary | |
|---|---|
boolean |
allowsReceiving()
Determines whether the directions specified by this MediaDirection instance allow for incoming (i.e. |
boolean |
allowsSending()
Determines whether the directions specified by this MediaDirection instance allow for outgoing (i.e. |
MediaDirection |
and(MediaDirection direction)
Applies an extra direction constraint to this MediaDirection or in other words performs an and operation. |
MediaDirection |
getDirectionForAnswer(MediaDirection remotePartyDir)
Returns the MediaDirection value corresponding to a remote party's perspective of this MediaDirection applying a remote party constraint. |
MediaDirection |
getReverseDirection()
Returns the MediaDirection value corresponding to a remote party's perspective of this MediaDirection. |
MediaDirection |
or(MediaDirection direction)
Reverses a direction constraint on this MediaDirection or in other words performs an or operation. |
static MediaDirection |
parseString(String mediaDirectionStr)
Returns a MediaDirection value corresponding to the specified mediaDirectionStr or in other words SENDONLY for "sendonly", RECVONLY for "recvonly", SENDRECV for "sendrecv", and INACTIVE for "inactive". |
String |
toString()
Returns the name of this MediaDirection (e.g. |
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MediaDirection INACTIVE
public static final MediaDirection SENDONLY
public static final MediaDirection RECVONLY
public static final MediaDirection SENDRECV
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<MediaDirection>public MediaDirection and(MediaDirection direction)
direction - that direction constraint that we'd like to apply to
this MediaDirection
public MediaDirection or(MediaDirection direction)
direction - the direction that we'd like to enable (i.e. add) to
this MediaDirection
public MediaDirection getReverseDirection()
public MediaDirection getDirectionForAnswer(MediaDirection remotePartyDir)
remotePartyDir - the remote party MediaDirection constraint
that we'd have to consider when trying to obtain a
MediaDirection corresponding to remoteParty's constraint.
public boolean allowsSending()
public boolean allowsReceiving()
public static MediaDirection parseString(String mediaDirectionStr)
throws IllegalArgumentException
mediaDirectionStr - the direction String that we'd like to
parse.
IllegalArgumentException - in case mediaDirectionStr is
not a valid media direction.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||