public class UIVideoHandler2
extends java.util.Observable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_VIDEO_VISIBLE_PROPERTY_NAME
The name of the UIVideoHandler2 property which indicates whether
the visual Component displaying the video of the local peer/user
streaming to the remote peer(s) is to be made visible in the user
interface.
|
Constructor and Description |
---|
UIVideoHandler2(CallConference callConference)
Initializes a new UIVideoHandler2 instance which is to
facilitate the handling of the various video-related events occurring in
a specific CallConference.
|
Modifier and Type | Method and Description |
---|---|
protected void |
callConferenceCallsPropertyChange(java.beans.PropertyChangeEvent ev)
Notifies this instance about a change in the value of the calls
property of
callConference i.e. |
protected void |
conferenceMemberVideoPropertyChange(java.beans.PropertyChangeEvent ev)
Notifies this instance about a change in the value of a video-related
property of a ConferenceMember.
|
(package private) void |
dispose()
Releases the resources (which require explicit disposal such as listeners
added to notifiers) acquired by this instance throughout its lifetime and
prepares it for garbage collection.
|
static boolean |
isAncestor(java.awt.Container container,
java.awt.Component component)
Determines whether a specific Container is an ancestor of a
specific Component (in the UI hierarchy).
|
boolean |
isLocalVideoVisible()
Gets the indicator which determines whether the visual Component
depicting the video of the local peer/user streaming to the remote
peer(s) is to be made visible in the user interface.
|
protected void |
localVideoStreamingPropertyChange(java.beans.PropertyChangeEvent ev)
Notifies this instance that the value of the property which indicates
whether the local peer is streaming video to the remote peer(s) changed.
|
void |
notifyObservers(java.lang.Object arg)
Overrides
Observable.notifyObservers(Object) to force the super
to notify the added Observers regardless of the changed
state of this Observable which UIVideoHandler2 does not
use at the time of this writing. |
protected void |
onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
Notifies this instance about a specific CallPeerConferenceEvent
fired by a CallPeer associated with a Call
participating in
callConference . |
protected void |
onCallPeerEvent(CallPeerEvent ev)
Notifies this instance about a specific CallPeerEvent fired by a
Call participating in
callConference . |
protected void |
onVideoEvent(org.jitsi.util.event.VideoEvent ev)
Notifies this instance about a specific VideoEvent fired by a
CallPeer associated with a Call participating in
callConference . |
void |
setLocalVideoVisible(boolean localVideoVisible)
Sets the indicator which determines whether the visual Component
depicting the video of the local peer/user streaming to the remote
peer(s) is to be made visible in the user interface.
|
public static final java.lang.String LOCAL_VIDEO_VISIBLE_PROPERTY_NAME
public UIVideoHandler2(CallConference callConference)
callConference
- the CallConference in which the handling
of the various video-related events is to be facilitated by the new
instanceprotected void callConferenceCallsPropertyChange(java.beans.PropertyChangeEvent ev)
callConference
i.e. a Call was added to or
removed from the list of Calls participating in
callConference. Adding or removing Calls modifies the
list of CallPeers associated with callConference which
in turn may result in the adding or removing of visual
Components depicting video.ev
- a PropertyChangeEvent which specifies the
Call which was added to or removed from the list of
Calls participating in callConferenceprotected void conferenceMemberVideoPropertyChange(java.beans.PropertyChangeEvent ev)
ev
- a PropertyChangeEvent which specifies the
ConferenceMember whose video-related property value changed, the
name of the property whose value changed, and the old and new values of
the property in questionvoid dispose()
public static boolean isAncestor(java.awt.Container container, java.awt.Component component)
container
- the Container which is to be tested as an
ancestor of componentcomponent
- the Component which is to be tested as having
container as its ancestorpublic boolean isLocalVideoVisible()
protected void localVideoStreamingPropertyChange(java.beans.PropertyChangeEvent ev)
ev
- a PropertyChangeEvent which specifies the source
notifying about the change and the old and new values of the property.public void notifyObservers(java.lang.Object arg)
Observable.notifyObservers(Object)
to force the super
to notify the added Observers regardless of the changed
state of this Observable which UIVideoHandler2 does not
use at the time of this writing.notifyObservers
in class java.util.Observable
protected void onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
callConference
. Adding or removing a
ConferenceMember may cause a visual Component
displaying video to be associated or dissociated with the
ConferenceMember.ev
- the CallPeerConferenceEvent this instance is to be
notified aboutprotected void onCallPeerEvent(CallPeerEvent ev)
callConference
. Adding or
removing a CallPeer may modify the list of visual
Components displaying video.ev
- the CallPeerEvent this instance is to be notified
aboutprotected void onVideoEvent(org.jitsi.util.event.VideoEvent ev)
callConference
.ev
- the VideoEvent this instance is to be notified aboutpublic void setLocalVideoVisible(boolean localVideoVisible)
localVideoVisible
- true to have the visual
Component depicting the video of the local peer/user streaming
to the remote peer(s) visible in the user interface; otherwise,
false
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.