|
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.protocol.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). |
| 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
VideoEvent which is local to the
executing client such as a local video capture device.
public static final int REMOTE
VideoEvent which is remote to the
executing client such as a video being remotely streamed from a
CallPeer.
public static final int VIDEO_ADDED
VideoEvent which notifies about a specific
visual Component depicting video being made available by the
firing provider.
public static final int VIDEO_REMOVED
VideoEvent which notifies about a specific
visual Component depicting video no longer being made
available by the firing provider.
| Constructor Detail |
|---|
public VideoEvent(Object source,
int type,
Component visualComponent,
int origin)
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.
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()
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).
public int getOrigin()
VideoEvent notifies about
which is one of LOCAL and REMOTE.
LOCAL and REMOTE which specifies the
origin of the video this VideoEvent notifies aboutpublic int getType()
VideoEvent
notifies about which is one of VIDEO_ADDED and
VIDEO_REMOVED.
VIDEO_ADDED and VIDEO_REMOVED which
describes the type of availability change this
VideoEvent notifies aboutpublic Component getVisualComponent()
Component depicting video which had its
availability changed and which this VideoEvent notifies
about.
Component depicting video which had its
availability changed and which this VideoEvent
notifies aboutpublic boolean isConsumed()
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).
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); otherwise, false
|
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 | |||||||||