|
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.Objectnet.java.sip.communicator.service.neomedia.event.VideoNotifierSupport
public class VideoNotifierSupport
Represents a mechanism to easily add to a specific Object by means of composition support for firing VideoEvents to VideoListeners.
| Constructor Summary | |
|---|---|
VideoNotifierSupport(Object source)
Initializes a new VideoNotifierSupport instance which is to facilitate the management of VideoListeners and firing VideoEvents to them for a specific Object. |
|
VideoNotifierSupport(Object source,
boolean synchronous)
Initializes a new VideoNotifierSupport instance which is to facilitate the management of VideoListeners and firing VideoEvents to them for a specific Object. |
|
| Method Summary | |
|---|---|
void |
addVideoListener(VideoListener listener)
Adds a specific VideoListener to this VideoNotifierSupport in order to receive notifications when visual/video Components are being added and removed. |
protected void |
doFireVideoEvent(VideoEvent event)
|
boolean |
fireVideoEvent(int type,
Component visualComponent,
int origin,
boolean wait)
Notifies the VideoListeners registered with this VideoMediaStream about a specific type of change in the availability of a specific visual Component depicting video. |
void |
fireVideoEvent(VideoEvent event,
boolean wait)
Notifies the VideoListeners registered with this instance about a specific VideoEvent. |
void |
removeVideoListener(VideoListener listener)
Removes a specific VideoListener from this VideoNotifierSupport in order to have to no longer receive notifications when visual/video Components are being added and removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VideoNotifierSupport(Object source)
source - the Object which is to be reported as the source
of the VideoEvents fired by the new instance
public VideoNotifierSupport(Object source,
boolean synchronous)
source - the Object which is to be reported as the source
of the VideoEvents fired by the new instancesynchronous - true if the new instance is to deliver the
VideoEvents synchronously; otherwise, false| Method Detail |
|---|
public void addVideoListener(VideoListener listener)
Adding a listener which has already been added does nothing i.e. it is not added more than once and thus does not receive one and the same VideoEvent multiple times.
listener - the VideoListener to be notified when
visual/video Components are being added or removed in this
VideoNotifierSupportprotected void doFireVideoEvent(VideoEvent event)
public boolean fireVideoEvent(int type,
Component visualComponent,
int origin,
boolean wait)
type - the type of change as defined by VideoEvent in the
availability of the specified visual Component depicting videovisualComponent - the visual Component depicting video
which has been added or removedorigin - VideoEvent.LOCAL if the origin of the video is
local (e.g. it is being locally captured); VideoEvent.REMOTE if
the origin of the video is remote (e.g. a remote peer is streaming it)wait - true if the call is to wait till the specified
VideoEvent has been delivered to the VideoListeners;
otherwise, false
public void fireVideoEvent(VideoEvent event,
boolean wait)
event - the VideoEvent to be fired to the
VideoListeners registered with this instancewait - true if the call is to wait till the specified
VideoEvent has been delivered to the VideoListeners;
otherwise, falsepublic void removeVideoListener(VideoListener listener)
listener - the VideoListener to no longer be notified when
visual/video Components are being added or 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 | |||||||||