|
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.media.AbstractOperationSetBasicTelephony<T>
T - the implementation specific provider class like for example
ProtocolProviderServiceSipImpl.public abstract class AbstractOperationSetBasicTelephony<T extends ProtocolProviderService>
Represents a default implementation of OperationSetBasicTelephony in order to make it easier for implementers to provide complete solutions while focusing on implementation-specific details.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicTelephony |
|---|
HANGUP_REASON_ENCRYPTION_REQUIRED, HANGUP_REASON_NORMAL_CLEARING, HANGUP_REASON_TIMEOUT, MAX_MEDIA_PORT_NUMBER_PROPERTY_NAME, MIN_MEDIA_PORT_NUMBER_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
AbstractOperationSetBasicTelephony()
|
|
| Method Summary | |
|---|---|
void |
addCallListener(CallListener listener)
Registers listener with this provider so that it could be notified when incoming calls are received. |
Recorder |
createRecorder(Call call)
Creates a new Recorder which is to record the specified Call (into a file which is to be specified when starting the returned Recorder). |
void |
fireCallEvent(int eventID,
Call sourceCall)
Creates and dispatches a CallEvent notifying registered listeners that an event with id eventID has occurred on sourceCall. |
void |
fireCallEvent(int eventID,
Call sourceCall,
Map<MediaType,MediaDirection> mediaDirections)
Creates and dispatches a CallEvent notifying registered listeners that an event with id eventID has occurred on sourceCall. |
void |
removeCallListener(CallListener listener)
Removes the listener from the list of call listeners. |
void |
setMute(Call call,
boolean mute)
Sets the mute state of the Call. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicTelephony |
|---|
answerCallPeer, createCall, createCall, createCall, createCall, getActiveCalls, getProtocolProvider, hangupCallPeer, hangupCallPeer, putOffHold, putOnHold |
| Constructor Detail |
|---|
public AbstractOperationSetBasicTelephony()
| Method Detail |
|---|
public void addCallListener(CallListener listener)
addCallListener in interface OperationSetBasicTelephony<T extends ProtocolProviderService>listener - the listener to register with this provider.
public void fireCallEvent(int eventID,
Call sourceCall)
eventID - the ID of the event to dispatchsourceCall - the call on which the event has occurred.
public void fireCallEvent(int eventID,
Call sourceCall,
Map<MediaType,MediaDirection> mediaDirections)
eventID - the ID of the event to dispatchsourceCall - the call on which the event has occurred.mediaDirections - direction map for media typespublic void removeCallListener(CallListener listener)
removeCallListener in interface OperationSetBasicTelephony<T extends ProtocolProviderService>listener - the listener to unregister.
public void setMute(Call call,
boolean mute)
Muting audio streams sent from the call is implementation specific and one of the possible approaches to it is sending silence.
setMute in interface OperationSetBasicTelephony<T extends ProtocolProviderService>call - the Call whose mute state is to be setmute - true to mute the call streams being sent to
peers; otherwise, false
public Recorder createRecorder(Call call)
throws OperationFailedException
AbstractOperationSetBasicTelephony implements the described functionality for MediaAwareCall only; otherwise, does nothing and just returns null.
createRecorder in interface OperationSetBasicTelephony<T extends ProtocolProviderService>call - the Call which is to be recorded by the returned
Recorder when the latter is started
OperationFailedException - if anything goes wrong while creating
the new Recorder for the specified callOperationSetBasicTelephony.createRecorder(Call)
|
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 | |||||||||