|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.java.sip.communicator.service.neomedia.event.VideoEvent
public class VideoEvent
Represents an event fired by providers of visual Components depicting video to notify about changes in the availability of such Components.
| Field Summary | |
|---|---|
static int |
LOCAL
The video origin of a VideoEvent which is local to the executing client such as a local video capture device. |
static int |
REMOTE
The video origin of a VideoEvent which is remote to the executing client such as a video being remotely streamed from a CallPeer. |
static int |
VIDEO_ADDED
The type of a VideoEvent which notifies about a specific visual Component depicting video being made available by the firing provider. |
static int |
VIDEO_REMOVED
The type of a VideoEvent which notifies about a specific visual Component depicting video no longer being made available by the firing provider. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
VideoEvent(Object source,
int type,
Component visualComponent,
int origin)
Initializes a new VideoEvent which is to notify about a specific change in the availability of a specific visual Component depicting video and being provided by a specific source. |
|
| Method Summary | |
|---|---|
void |
consume()
Consumes this event and, more specifically, marks the Component it describes as owned, referenced in order to let other potential consumers know about its current ownership status (which is important because Components belong to a single Container at a time). |
int |
getOrigin()
Gets the origin of the video this VideoEvent notifies about which is one of LOCAL and REMOTE. |
int |
getType()
Gets the type of availability change this VideoEvent notifies about which is one of VIDEO_ADDED and VIDEO_REMOVED. |
Component |
getVisualComponent()
Gets the visual Component depicting video which had its availability changed and which this VideoEvent notifies about. |
boolean |
isConsumed()
Determines whether this event and, more specifically, the visual Component it describes have been consumed and should be considered owned, referenced (which is important because Components belong to a single Container at a time). |
static String |
originToString(int origin)
Returns a human-readable representation of a specific VideoEvent origin constant in the form of a String value. |
static String |
typeToString(int type)
Returns a human-readable representation of a specific VideoEvent type constant in the form of a String value. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LOCAL
public static final int REMOTE
public static final int VIDEO_ADDED
public static final int VIDEO_REMOVED
| Constructor Detail |
|---|
public VideoEvent(Object source,
int type,
Component visualComponent,
int origin)
source - the source of the new VideoEvent and the provider
of the visual Component depicting videotype - the type of the availability change which has caused the new
VideoEvent to be firedvisualComponent - the visual Component depicting video
which had its availability in the source provider changedorigin - the origin of the video the new VideoEvent is to
notify about| Method Detail |
|---|
public void consume()
public int getOrigin()
LOCAL and REMOTE.
LOCAL and REMOTE which specifies the
origin of the video this VideoEvent notifies aboutpublic int getType()
VIDEO_ADDED and VIDEO_REMOVED.
VIDEO_ADDED and VIDEO_REMOVED which
describes the type of availability change this VideoEvent
notifies aboutpublic Component getVisualComponent()
public boolean isConsumed()
public static String originToString(int origin)
origin - one of the VideoEvent origin constants such as
LOCAL or REMOTE
public static String typeToString(int type)
type - one of the VideoEvent type constants such as
VIDEO_ADDED or VIDEO_REMOVED
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||