Package org.linphone.core
Interface CallListener
- All Known Implementing Classes:
CallListenerStub
public interface CallListener
That class holds all the callbacks which are called by
Use
callback setters on the events you need to monitor and pass the object to a
Call
objects. Use
Factory#createCallCbs
to create an instance. Then, call thecallback setters on the events you need to monitor and pass the object to a
Call
instance through Call.addListener(org.linphone.core.CallListener)
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAckProcessing
(Call call, Headers ack, boolean isReceived) Callback for notifying the processing SIP ACK messages.void
onAudioDeviceChanged
(Call call, AudioDevice audioDevice) Callback to notify that the audio device has been changed.void
onCameraNotWorking
(Call call, String cameraName) Callback to notify that the camera is not working and has been changed to "No
Webcam".void
onDtmfReceived
(Call call, int dtmf) Callback for being notified of received DTMFs.void
onEncryptionChanged
(Call call, boolean on, String authenticationToken) Call encryption changed callback.void
onGoclearAckSent
(Call call) GoClear ACK sent callback.void
onInfoMessageReceived
(Call call, InfoMessage message) Callback for receiving info messages.void
onNextVideoFrameDecoded
(Call call) Callback to notify a next video frame has been decoded.void
onReceiveMasterKeyChanged
(Call call, String receiveMasterKey) Call receive master key changed callback.void
onRemoteRecording
(Call call, boolean recording) Callback to notify that the call is being recorded by the remote.void
onSendMasterKeyChanged
(Call call, String sendMasterKey) Call send master key changed callback.void
onSnapshotTaken
(Call call, String filePath) Callback for notifying a snapshot taken.void
onStateChanged
(Call call, Call.State state, String message) Call state notification callback.void
onStatsUpdated
(Call call, CallStats stats) Callback for receiving quality statistics for calls.void
onTmmbrReceived
(Call call, int streamIndex, int tmmbr) Callback for notifying a received TMMBR.void
onTransferStateChanged
(Call call, Call.State state) Callback for notifying progresses of transfers.void
onVideoDisplayErrorOccurred
(Call call, int errorCode) Callback to notify that there are errors from the video rendering.
-
Method Details
-
onDtmfReceived
Callback for being notified of received DTMFs.
- Parameters:
call
-Call
object that received the dtmfdtmf
- The ascii code of the dtmf
-
onGoclearAckSent
GoClear ACK sent callback.
- Parameters:
call
- theCall
on which the GoClear ACK was sent.
-
onEncryptionChanged
Call encryption changed callback.
- Parameters:
call
-Call
object whose encryption is changed.on
- Whether encryption is activated.authenticationToken
- An authentication_token, currently set for ZRTP kind
of encryption only.
-
onSendMasterKeyChanged
Call send master key changed callback.
- Parameters:
call
-Call
object whose encryption is changed.
-
onReceiveMasterKeyChanged
Call receive master key changed callback.
- Parameters:
call
-Call
object whose encryption is changed.
-
onInfoMessageReceived
Callback for receiving info messages.
- Parameters:
call
-Call
whose info message belongs to.message
-InfoMessage
object.
-
onStateChanged
Call state notification callback.
- Parameters:
call
-Call
whose state is changed.state
- The newCall#State
of the callmessage
- An informational message about the state.
-
onStatsUpdated
Callback for receiving quality statistics for calls.
-
onTransferStateChanged
Callback for notifying progresses of transfers.
- Parameters:
call
-Call
that was transferedstate
- TheCall#State
of the call to transfer target at the far
end.
-
onAckProcessing
Callback for notifying the processing SIP ACK messages.
-
onTmmbrReceived
Callback for notifying a received TMMBR.
- Parameters:
call
- LinphoneCall for which the TMMBR has changedstreamIndex
- the index of the current streamtmmbr
- the value of the received TMMBR
-
onSnapshotTaken
Callback for notifying a snapshot taken.
- Parameters:
call
- LinphoneCall for which the snapshot was takenfilePath
- the name of the saved file
-
onNextVideoFrameDecoded
Callback to notify a next video frame has been decoded.
- Parameters:
call
- LinphoneCall for which the next video frame has been decoded
-
onCameraNotWorking
Callback to notify that the camera is not working and has been changed to "No
Webcam".
A camera is detected as mis-functionning as soon as it outputs no frames at all
during a period of 5 seconds. This check is only performed on desktop
platforms, in the purpose of notifying camera failures, for example if when a
usb cable gets disconnected.- Parameters:
call
- LinphoneCall for which the next video frame has been decodedcameraName
- the name of the non-working camera
-
onVideoDisplayErrorOccurred
Callback to notify that there are errors from the video rendering.
The error code depends of the implementation.- Parameters:
call
- LinphoneCallerrorCode
- error code from render. It depends of the renderer.
-
onAudioDeviceChanged
Callback to notify that the audio device has been changed.
- Parameters:
call
- LinphoneCall for which the audio device has changedaudioDevice
- the new audio device used for this call
-
onRemoteRecording
Callback to notify that the call is being recorded by the remote.
- Parameters:
call
- LinphoneCall for which the audio is recordedrecording
- true if the call is being recorded by the remote, false
otherwise
-