sinch-rtc

# VideoCallListener

interface VideoCallListener : CallListener

Represents a listener for Call events connected with a video call. This listener will be notified about same events as usual CallListener and extra ones connected with video specific functionalities. The listener can be added by invoking same Call.addCallListener method as for usual audio-only call.

#### See also

CallListener

## Functions

onCallAnswered
Link copied to clipboard
open fun onCallAnswered(call: Call)

Tells the listener that the callee answered the call. Note that it might take some time after this callback is invoked for media stream to connect. See onCallEstablished for more information.

onCallEnded
Link copied to clipboard
abstract fun onCallEnded(call: Call)

Tells the listener that the call has entered the CallState.ENDED state.

onCallEstablished
Link copied to clipboard
abstract fun onCallEstablished(call: Call)

Tells the listener that the call was answered and media stream is connected. This means both peers should be able to hear and communicate with each other. This callback ideally is invoked shortly after onCallAnswered, however for various reasons (e.g bad network conditions) it might take few seconds to fully establish a connection after the call is answered.

onCallProgressing
Link copied to clipboard
abstract fun onCallProgressing(call: Call)

Tells the listener that the outgoing call has entered the CallState.PROGRESSING state and a progress tone can be played.

onCallRinging
Link copied to clipboard
open fun onCallRinging(call: Call)

Tells the listener that the outgoing call has entered the CallState.RINGING state and the callee received the call.

onVideoTrackAdded
Link copied to clipboard
abstract fun onVideoTrackAdded(call: Call)

Called when a Video track has been added to the call. To get the local preview and the remote stream, see VideoController.remoteView and VideoController.localView.

onVideoTrackPaused
Link copied to clipboard
abstract fun onVideoTrackPaused(call: Call)

Called when a Video track has been paused by the remote participant.

onVideoTrackResumed
Link copied to clipboard
abstract fun onVideoTrackResumed(call: Call)

Called when a Video track has been resumed by the remote participant.