|
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.protocol.Call
net.java.sip.communicator.service.protocol.AbstractCall<T,V>
net.java.sip.communicator.service.protocol.media.MediaAwareCall<T,U,V>
T - the peer extension class like for example CallPeerSipImpl
or CallPeerJabberImplU - the provider extension class like for example
OperationSetBasicTelephonySipImpl or
OperationSetBasicTelephonySipImplV - the provider extension class like for example
ProtocolProviderServiceSipImpl or
ProtocolProviderServiceJabberImplpublic abstract class MediaAwareCall<T extends MediaAwareCallPeer<?,?,V>,U extends OperationSetBasicTelephony<V>,V extends ProtocolProviderService>
A utility class implementing media control code shared between current telephony implementations. This class is only meant for use by protocol implementations and should/could not be accessed by bundles that are simply using the telephony functionalities.
| Field Summary | |
|---|---|
static String |
DEFAULT_DEVICE
The name of the property of MediaAwareCall the value of which corresponds to the value returned by getDefaultDevice(MediaType). |
protected boolean |
localVideoAllowed
Our video streaming policy. |
protected MediaUseCase |
mediaUseCase
Device used in call will be chosen according to MediaUseCase. |
protected U |
parentOpSet
The OperationSetBasicTelephony implementation which created us. |
| Fields inherited from class net.java.sip.communicator.service.protocol.AbstractCall |
|---|
callGroup |
| Constructor Summary | |
|---|---|
protected |
MediaAwareCall(U parentOpSet)
Crates a Call instance belonging to parentOpSet. |
| Method Summary | |
|---|---|
protected void |
addCallPeer(T callPeer)
Adds callPeer to the list of peers in this call. |
void |
addLocalUserSoundLevelListener(SoundLevelListener l)
Adds a specific SoundLevelListener to the list of listeners interested in and notified about changes in local sound level related information. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to be notified about changes in the values of the properties of this instance. |
void |
addVideoPropertyChangeListener(PropertyChangeListener listener)
Registers a listener with all CallPeer currently participating with the call so that it would be notified of changes in video related properties (e.g. |
void |
callAdded(CallGroupEvent evt)
Notifies this instance that a specific Call has been added to a CallGroup. |
void |
callPeerAdded(CallPeerEvent evt)
Indicates that a new call peer has joined the source call. |
void |
callPeerRemoved(CallPeerEvent evt)
Indicates that a call peer has left the source call. |
void |
callRemoved(CallGroupEvent evt)
Notified when a call is removed from a CallGroup. |
void |
callStateChanged(CallChangeEvent evt)
Indicates that a change has occurred in the state of the source call. |
Recorder |
createRecorder()
Creates a new Recorder which is to record this Call (into a file which is to be specified when starting the returned Recorder). |
MediaDevice |
getDefaultDevice(MediaType mediaType)
Gets a MediaDevice which is capable of capture and/or playback of media of the specified MediaType, is the default choice of the user for a MediaDevice with the specified MediaType and is appropriate for the current state of this Call. |
MediaUseCase |
getMediaUseCase()
Get the media use case. |
U |
getParentOperationSet()
Returns a reference to the OperationSetBasicTelephony implementation instance that created this call. |
RTPTranslator |
getRTPTranslator(MediaType mediaType)
Gets the RTPTranslator which forwards RTP and RTCP traffic between the CallPeers of this Call when the local peer represented by this Call is acting as a conference focus i.e. |
boolean |
isConferenceFocus()
Gets the indicator which determines whether the local peer represented by this Call is acting as a conference focus and thus may need to send the corresponding parameters in its outgoing signaling. |
boolean |
isLocalVideoAllowed(MediaUseCase useCase)
Determines whether the streaming of local video in this Call is currently allowed. |
boolean |
isLocalVideoStreaming()
Determines whether we are currently streaming video toward at least one of the peers in this call. |
boolean |
isMute()
Determines whether this call is mute. |
void |
peerAddressChanged(CallPeerChangeEvent evt)
Dummy implementation of a method (inherited from CallPeerListener) that we don't need. |
void |
peerDisplayNameChanged(CallPeerChangeEvent evt)
Dummy implementation of a method (inherited from CallPeerListener) that we don't need. |
void |
peerImageChanged(CallPeerChangeEvent evt)
Dummy implementation of a method (inherited from CallPeerListener) that we don't need. |
void |
peerStateChanged(CallPeerChangeEvent evt)
Verifies whether the call peer has entered a state. |
void |
peerTransportAddressChanged(CallPeerChangeEvent evt)
Dummy implementation of a method (inherited from CallPeerListener) that we don't need. |
void |
propertyChange(PropertyChangeEvent event)
Notifies this instance about a change of the value of a specific property from a specific old value to a specific new value. |
void |
removeLocalUserSoundLevelListener(SoundLevelListener l)
Removes a specific SoundLevelListener from the list of listeners interested in and notified about changes in local sound level related information. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener to no longer be notified about changes in the values of the properties of this instance. |
void |
removeVideoPropertyChangeListener(PropertyChangeListener listener)
Removes listener from all CallPeers currently participating with the call so that it won't receive further notifications on changes in video related properties (e.g. |
void |
setAudioDevice(MediaDevice dev)
Set the MediaDevice used for the audio. |
protected void |
setCallState(CallState newState,
CallPeerChangeEvent cause)
Sets the state of this Call and fires a new CallChangeEvent notifying the registered CallChangeListeners about the change of the state. |
void |
setConferenceFocus(boolean conferenceFocus)
Sets the indicator which determines whether the local peer represented by this Call is acting as a conference focus (and thus may, for example, need to send the corresponding parameters in its outgoing signaling). |
void |
setLocalVideoAllowed(boolean allowed,
MediaUseCase useCase)
Modifies the local media setup of all peers in the call to reflect the requested setting for the streaming of the local video and then passes the setting to the participating MediaAwareCallPeer instances. |
void |
setMute(boolean mute)
Sets the mute property for this call. |
void |
setVideoDevice(MediaDevice dev)
Set the MediaDevice used for the video. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractCall |
|---|
getCallGroup, getCallPeerCount, getCallPeers, getCallPeersVector, getCrossProtocolCallPeerCount, getCrossProtocolCallPeers, getCrossProtocolCallPeersVector, getProtocolProvider, setCallGroup |
| Methods inherited from class net.java.sip.communicator.service.protocol.Call |
|---|
addCallChangeListener, equals, fireCallChangeEvent, fireCallChangeEvent, fireCallPeerEvent, getCallID, getCallState, hashCode, isDefaultEncrypted, isSipZrtpAttribute, removeCallChangeListener, setCallState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_DEVICE
getDefaultDevice(MediaType). The oldValue
and the newValue of the fired PropertyChangeEvent are
not to be relied on and instead a call to getDefaultDevice is to
be performed to retrieve the new value.
protected boolean localVideoAllowed
protected final U extends OperationSetBasicTelephony<V> parentOpSet
protected MediaUseCase mediaUseCase
| Constructor Detail |
|---|
protected MediaAwareCall(U parentOpSet)
parentOpSet - a reference to the operation set that's creating us
and that we would be able to use for even dispatching.| Method Detail |
|---|
protected void addCallPeer(T callPeer)
callPeer - the new CallPeerpublic void peerImageChanged(CallPeerChangeEvent evt)
peerImageChanged in interface CallPeerListenerevt - unused.public void peerAddressChanged(CallPeerChangeEvent evt)
peerAddressChanged in interface CallPeerListenerevt - unused.public void peerTransportAddressChanged(CallPeerChangeEvent evt)
peerTransportAddressChanged in interface CallPeerListenerevt - unused.public void peerDisplayNameChanged(CallPeerChangeEvent evt)
peerDisplayNameChanged in interface CallPeerListenerevt - unused.public void peerStateChanged(CallPeerChangeEvent evt)
peerStateChanged in interface CallPeerListenerevt - The CallPeerChangeEvent instance containing
the source event as well as its previous and its new status.public U getParentOperationSet()
public RTPTranslator getRTPTranslator(MediaType mediaType)
conferenceFocus is true.
mediaType - the MediaType of the MediaStream which
RTP and RTCP traffic is to be forwarded between
conferenceFocus is truepublic boolean isConferenceFocus()
isConferenceFocus in class Callpublic void setConferenceFocus(boolean conferenceFocus)
conferenceFocus - true if the local peer represented by
this Call is to act as a conference focus; otherwise,
falsepublic MediaDevice getDefaultDevice(MediaType mediaType)
For example, when the local peer represented by this Call instance is acting as a conference focus, the audio device must be a mixer.
mediaType - the MediaType in which the retrieved
MediaDevice is to capture and/or play back media
public void addLocalUserSoundLevelListener(SoundLevelListener l)
addLocalUserSoundLevelListener in class Calll - the SoundLevelListener to addpublic void removeLocalUserSoundLevelListener(SoundLevelListener l)
removeLocalUserSoundLevelListener in class Calll - the SoundLevelListener to removepublic boolean isMute()
public void setMute(boolean mute)
mute - the new value of the mute property for this call
public void setLocalVideoAllowed(boolean allowed,
MediaUseCase useCase)
throws OperationFailedException
allowed - true if local video transmission is allowed and
false otherwise.useCase - the use case of the video (i.e video call or desktop
streaming/sharing session)
OperationFailedException - if video initialization fails.public MediaUseCase getMediaUseCase()
public boolean isLocalVideoAllowed(MediaUseCase useCase)
useCase - the use case of the video (i.e video call or desktop
streaming/sharing session)
public boolean isLocalVideoStreaming()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to be notified about
changes in the values of the properties of this instancepublic void addVideoPropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to be notified
when the properties associated with member CallPeers change
their values.public void removePropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to no longer be
notified about changes in the values of the properties of this instancepublic void removeVideoPropertyChangeListener(PropertyChangeListener listener)
listener - the PropertyChangeListener to unregister from
member CallPeers change their values.
public Recorder createRecorder()
throws OperationFailedException
OperationFailedException - if anything goes wrong while creating
the new Recorder for this Callpublic void setVideoDevice(MediaDevice dev)
dev - video MediaDevicepublic void setAudioDevice(MediaDevice dev)
dev - audio MediaDevicepublic void callPeerAdded(CallPeerEvent evt)
callPeerAdded in interface CallChangeListenerevt - the CallPeerEvent containing the source call
and call peer.public void callPeerRemoved(CallPeerEvent evt)
callPeerRemoved in interface CallChangeListenerevt - the CallPeerEvent containing the source call
and call peer.public void callStateChanged(CallChangeEvent evt)
callStateChanged in interface CallChangeListenerevt - the CallChangeEvent instance containing the source
calls and its old and new state.public void callAdded(CallGroupEvent evt)
callAdded in interface CallGroupListenerevt - a CallGroupEvent which specifies the Call
which has been added to a CallGroupCallGroupListener.callAdded(CallGroupEvent)public void callRemoved(CallGroupEvent evt)
callRemoved in interface CallGroupListenerevt - event
protected void setCallState(CallState newState,
CallPeerChangeEvent cause)
setCallState in class CallnewState - the CallState into which this Call is
to entercause - the CallPeerChangeEvent which is the cause for the
request to have this Call enter the specified CallStateCall.setCallState(CallState, CallPeerChangeEvent)public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerevent - a PropertyChangeEvent which specifies the name of
the property which has its value changed and the old and new values
|
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 | |||||||||