EndpointListener (interface)
com.voximplant.android.sdk.calls
Interface that handles events of the remote participant in a conference call.
Methods
Methods
onEndpointMuteStateChanged
fun onEndpointMuteStateChanged(endpoint: Endpoint, muted: Boolean): Unit
Triggered when a mute status of the enpoint is changed in a conference call.
The event is triggered as the result of Conference.muteAudio API call on an endpoint client.
Parameters
Returns: Unit
onEndpointVoiceActivityChanged
fun onEndpointVoiceActivityChanged(endpoint: Endpoint, voiceDetected: Boolean): Unit
Triggered when a voice activity of the endpoint is detected or stopped in a conference call.
Parameters
Returns: Unit
onRemoteVideoStreamAdded
fun onRemoteVideoStreamAdded(endpoint: Endpoint, videoStream: RemoteVideoStream): Unit
Triggered after the endpoint has added the video stream.
Parameters
Returns: Unit
onRemoteVideoStreamRemoved
fun onRemoteVideoStreamRemoved(endpoint: Endpoint, videoStream: RemoteVideoStream): Unit
Triggered after the endpoint has removed the video stream.
Event is not triggered on a conference end.
Parameters
Returns: Unit
onStartReceivingVideoStream
fun onStartReceivingVideoStream(endpoint: Endpoint, videoStream: RemoteVideoStream): Unit
Triggered when video receive on a remote video stream is started after previously being stopped.
The event is triggered if:
- Endpoint.startReceiveVideo has been called and the request has been processed successfully.
- A network issue that caused the Voximplant Cloud to stop video receive of the remote video stream is gone.
The event is not triggered if the endpoint client has started sending video via Conference.addVideoStream API.
Parameters
Returns: Unit
onStopReceivingVideoStream
fun onStopReceivingVideoStream(endpoint: Endpoint, videoStream: RemoteVideoStream, reason: VideoStreamReceiveStopReason): Unit
Triggered when video receive on a remote video stream is stopped.
Video receive on a remote video stream can be stopped due to:
- Endpoint.stopReceiveVideo has been called and the request has been processed successfully. In this case the value of the “reason” parameter is VideoStreamReceiveStopReason.Manual.
- Voximplant Cloud has detected a network issue on the client and automatically stopped the video. In this case the value of the “reason” parameter is VideoStreamReceiveStopReason.Automatic.
If the video receive is disabled automatically, it may be automatically enabled as soon as the network condition on the device is good and there is enough bandwidth to receive the video on this remote video stream. In this case event is invoked.
The event is not triggered if the endpoint client has stopped sending video via Conference.removeVideoStream API.
Parameters
Returns: Unit