Package org.linphone.core
Class CallListenerStub
java.lang.Object
org.linphone.core.CallListenerStub
- All Implemented Interfaces:
CallListener
-
Constructor Summary
-
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.
-
Constructor Details
-
CallListenerStub
public CallListenerStub()
-
-
Method Details
-
onDtmfReceived
Description copied from interface:CallListener
Callback for being notified of received DTMFs.
- Specified by:
onDtmfReceived
in interfaceCallListener
- Parameters:
call
-Call
object that received the dtmfdtmf
- The ascii code of the dtmf
-
onGoclearAckSent
Description copied from interface:CallListener
GoClear ACK sent callback.
- Specified by:
onGoclearAckSent
in interfaceCallListener
- Parameters:
call
- theCall
on which the GoClear ACK was sent.
-
onEncryptionChanged
public void onEncryptionChanged(@NonNull Call call, boolean on, @Nullable String authenticationToken) Description copied from interface:CallListener
Call encryption changed callback.
- Specified by:
onEncryptionChanged
in interfaceCallListener
- 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
Description copied from interface:CallListener
Call send master key changed callback.
- Specified by:
onSendMasterKeyChanged
in interfaceCallListener
- Parameters:
call
-Call
object whose encryption is changed.
-
onReceiveMasterKeyChanged
Description copied from interface:CallListener
Call receive master key changed callback.
- Specified by:
onReceiveMasterKeyChanged
in interfaceCallListener
- Parameters:
call
-Call
object whose encryption is changed.
-
onInfoMessageReceived
Description copied from interface:CallListener
Callback for receiving info messages.
- Specified by:
onInfoMessageReceived
in interfaceCallListener
- Parameters:
call
-Call
whose info message belongs to.message
-InfoMessage
object.
-
onStateChanged
Description copied from interface:CallListener
Call state notification callback.
- Specified by:
onStateChanged
in interfaceCallListener
- Parameters:
call
-Call
whose state is changed.state
- The newCall#State
of the callmessage
- An informational message about the state.
-
onStatsUpdated
Description copied from interface:CallListener
Callback for receiving quality statistics for calls.
- Specified by:
onStatsUpdated
in interfaceCallListener
- Parameters:
call
-Call
object whose statistics are notifiedstats
-CallStats
object
-
onTransferStateChanged
Description copied from interface:CallListener
Callback for notifying progresses of transfers.
- Specified by:
onTransferStateChanged
in interfaceCallListener
- Parameters:
call
-Call
that was transferedstate
- TheCall#State
of the call to transfer target at the far
end.
-
onAckProcessing
Description copied from interface:CallListener
Callback for notifying the processing SIP ACK messages.
- Specified by:
onAckProcessing
in interfaceCallListener
- Parameters:
call
-Call
for which an ACK is being received or sentack
- the ACKHeaders
isReceived
- if true this ACK is an incoming one, otherwise it is an ACK
about to be sent.
-
onTmmbrReceived
Description copied from interface:CallListener
Callback for notifying a received TMMBR.
- Specified by:
onTmmbrReceived
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the TMMBR has changedstreamIndex
- the index of the current streamtmmbr
- the value of the received TMMBR
-
onSnapshotTaken
Description copied from interface:CallListener
Callback for notifying a snapshot taken.
- Specified by:
onSnapshotTaken
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the snapshot was takenfilePath
- the name of the saved file
-
onNextVideoFrameDecoded
Description copied from interface:CallListener
Callback to notify a next video frame has been decoded.
- Specified by:
onNextVideoFrameDecoded
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the next video frame has been decoded
-
onCameraNotWorking
Description copied from interface:CallListener
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.- Specified by:
onCameraNotWorking
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the next video frame has been decodedcameraName
- the name of the non-working camera
-
onVideoDisplayErrorOccurred
Description copied from interface:CallListener
Callback to notify that there are errors from the video rendering.
The error code depends of the implementation.- Specified by:
onVideoDisplayErrorOccurred
in interfaceCallListener
- Parameters:
call
- LinphoneCallerrorCode
- error code from render. It depends of the renderer.
-
onAudioDeviceChanged
Description copied from interface:CallListener
Callback to notify that the audio device has been changed.
- Specified by:
onAudioDeviceChanged
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the audio device has changedaudioDevice
- the new audio device used for this call
-
onRemoteRecording
Description copied from interface:CallListener
Callback to notify that the call is being recorded by the remote.
- Specified by:
onRemoteRecording
in interfaceCallListener
- Parameters:
call
- LinphoneCall for which the audio is recordedrecording
- true if the call is being recorded by the remote, false
otherwise
-