public class VideoNotifierSupport extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public VideoNotifierSupport(Object source)
source - the Object which is to be reported as the source
of the VideoEvents fired by the new instancepublic 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, falsepublic 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, falsepublic 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 removedCopyright © 2021 jitsi.org. All rights reserved.