Skip to navigation

EndpointListener (interface)

Android SDK v3 API reference
View as Markdown

com.voximplant.android.sdk.calls

Interface that handles events of the remote participant in a conference call.

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

ParameterTypeRequirementDescription
endpointEndpoint
mutedBoolean

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

ParameterTypeRequirementDescription
endpointEndpointEndpoint that triggered this event
voiceDetectedBooleanWhether the remote participant is currently talking

Returns: Unit

onRemoteVideoStreamAdded

fun onRemoteVideoStreamAdded(endpoint: Endpoint, videoStream: RemoteVideoStream): Unit

Triggered after the endpoint has added the video stream.

Parameters

ParameterTypeRequirementDescription
endpointEndpointEndpoint that triggered this event
videoStreamRemoteVideoStreamRemote video stream

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

ParameterTypeRequirementDescription
endpointEndpointEndpoint that triggered this event
videoStreamRemoteVideoStreamRemote video stream

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:

  1. Endpoint.startReceiveVideo has been called and the request has been processed successfully.
  2. 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

ParameterTypeRequirementDescription
endpointEndpointEndpoint that triggered this event
videoStreamRemoteVideoStreamRemote video stream where video receive is started

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:

  1. Endpoint.stopReceiveVideo has been called and the request has been processed successfully. In this case the value of the “reason” parameter is VideoStreamReceiveStopReason.Manual.
  2. 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

ParameterTypeRequirementDescription
endpointEndpointEndpoint that triggered this event
videoStreamRemoteVideoStreamRemote video stream where video receive is stopped
reasonVideoStreamReceiveStopReasonReason video receive has stopped, for example VideoStreamReceiveStopReason.Manual or VideoStreamReceiveStopReason.Automatic

Returns: Unit