public class CallConference
extends org.jitsi.util.event.PropertyChangeNotifier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALLS
The name of the CallConference property which specifies the list
of Calls participating in a telephony conference.
|
Constructor and Description |
---|
CallConference()
Initializes a new CallConference instance.
|
CallConference(boolean jitsiVideobridge)
Initializes a new CallConference instance which is to optionally
utilize the Jitsi Videobridge server-side telephony conferencing
technology.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
addCall(Call call)
Adds a specific Call to the list of Calls participating
in this telephony conference.
|
void |
addCallChangeListener(CallChangeListener listener)
Adds a CallChangeListener to the Calls participating in
this telephony conference.
|
void |
addCallPeerConferenceListener(CallPeerConferenceListener listener)
Adds a CallPeerConferenceListener to the CallPeers
associated with the Calls participating in this telephony
conference.
|
protected void |
callAdded(Call call)
Notifies this CallConference that a specific Call has
been added to the list of Calls participating in this telephony
conference.
|
protected void |
callRemoved(Call call)
Notifies this CallConference that a specific Call has
been removed from the list of Calls participating in this
telephony conference.
|
protected void |
conferenceFocusChanged(boolean oldValue,
boolean newValue)
Notifies this CallConference that the value of its
conferenceFocus property has changed from a specific old value
to a specific new value.
|
boolean |
containsCall(Call call)
Determines whether a specific Call is participating in this
telephony conference.
|
int |
getCallCount()
Gets the number of Calls that are participating in this
telephony conference.
|
int |
getCallPeerCount()
Gets the number of CallPeers associated with the Calls
participating in this telephony conference.
|
static int |
getCallPeerCount(Call call)
Gets the number of CallPeers associated with the Calls
participating in the telephony conference-related state of a specific
Call.
|
java.util.List<CallPeer> |
getCallPeers()
Gets a list of the CallPeers associated with the Calls
participating in this telephony conference.
|
static java.util.List<CallPeer> |
getCallPeers(Call call)
Gets a list of the CallPeers associated with the Calls
participating in the telephony conference in which a specific
Call is participating.
|
protected void |
getCallPeers(java.util.List<CallPeer> callPeers)
Adds the CallPeers associated with the Calls
participating in this telephony conference into a specific List.
|
java.util.List<Call> |
getCalls()
Gets the list of Call participating in this telephony
conference.
|
static java.util.List<Call> |
getCalls(Call call)
Gets the list of Calls participating in the telephony conference
in which a specific Call is participating.
|
boolean |
isConferenceFocus()
Determines whether the local peer/user associated with this instance and
represented by the Calls participating into it is acting as a
conference focus.
|
boolean |
isEnded()
Determines whether the current state of this instance suggests that the
telephony conference it represents has ended.
|
boolean |
isJitsiVideobridge()
Determines whether the telephony conference represented by this instance
is utilizing the Jitsi Videobridge server-side telephony conferencing
technology.
|
(package private) boolean |
removeCall(Call call)
Removes a specific Call from the list of Calls
participating in this telephony conference.
|
void |
removeCallChangeListener(CallChangeListener listener)
Removes a CallChangeListener from the Calls
participating in this telephony conference.
|
void |
removeCallPeerConferenceListener(CallPeerConferenceListener listener)
Removes a CallPeerConferenceListener from the CallPeers
associated with the Calls participating in this telephony
conference.
|
void |
setConferenceFocus(boolean conferenceFocus)
Sets the indicator which determines whether the local peer represented by
this instance and the Calls participating in it is acting as a
conference focus (and thus may, for example, need to send the
corresponding parameters in its outgoing signaling).
|
public static final java.lang.String CALLS
public CallConference()
public CallConference(boolean jitsiVideobridge)
jitsiVideobridge
- true if the telephony conference
represented by the new instance is to utilize the Jitsi Videobridge
server-side telephony conferencing technology; otherwise, falsepublic static int getCallPeerCount(Call call)
call
- the Call for which the number of CallPeers
associated with the Calls participating in its associated
telephony conference-related statepublic static java.util.List<CallPeer> getCallPeers(Call call)
call
- the Call which specifies the telephony conference
the CallPeers of which are to be retrievedpublic static java.util.List<Call> getCalls(Call call)
call
- the Call which participates in the telephony
conference the list of participating Calls of which is to be
returnedboolean addCall(Call call)
call
- the Call to add to the list of Calls
participating in this telephony conferencejava.lang.NullPointerException
- if call is nullpublic void addCallChangeListener(CallChangeListener listener)
listener
- the CallChangeListner to be added to the
Calls participating in this telephony conferencejava.lang.NullPointerException
- if listener is nullpublic void addCallPeerConferenceListener(CallPeerConferenceListener listener)
listener
- the CallPeerConferenceListener to be added to
the CallPeers associated with the Calls participating
in this telephony conferencejava.lang.NullPointerException
- if listener is nullprotected void callAdded(Call call)
call
- the Call which has been added to the list of
Calls participating in this telephony conferenceprotected void callRemoved(Call call)
call
- the Call which has been removed from the list of
Calls participating in this telephony conferenceprotected void conferenceFocusChanged(boolean oldValue, boolean newValue)
oldValue
- the value of the conferenceFocus property of
this instance before the changenewValue
- the value of the conferenceFocus property of
this instance after the changepublic boolean containsCall(Call call)
call
- the Call which is to be checked whether it is
participating in this telephony conferencepublic int getCallCount()
public int getCallPeerCount()
public java.util.List<CallPeer> getCallPeers()
protected void getCallPeers(java.util.List<CallPeer> callPeers)
callPeers
- a List into which the CallPeers
associated with the Calls participating in this telephony
conference are to be addedpublic java.util.List<Call> getCalls()
public boolean isConferenceFocus()
public boolean isEnded()
CallState.CALL_ENDED
state.public boolean isJitsiVideobridge()
boolean removeCall(Call call)
call
- the Call to remove from the list of Calls
participating in this telephony conferencepublic void removeCallChangeListener(CallChangeListener listener)
listener
- the CallChangeListener to be removed from the
Calls participating in this telephony conferenceaddCallChangeListener(CallChangeListener)
public void removeCallPeerConferenceListener(CallPeerConferenceListener listener)
listener
- the CallPeerConferenceListener to be removed
from the CallPeers associated with the Calls
participating in this telephony conferenceaddCallPeerConferenceListener(CallPeerConferenceListener)
public void setConferenceFocus(boolean conferenceFocus)
conferenceFocus
- true if the local peer represented by
this instance and the Calls participating in it is to act as a
conference focus; otherwise, false
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.