Rate this page:

EndpointListener

This API is in beta and subject to change.

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

Methods

onRemoteVideoStreamAdded

Copy URL
fun onRemoteVideoStreamAdded(endpoint: 

Endpoint

,
videoStream:

RemoteVideoStream

):

Unit

This API is in beta and subject to change.

Triggered after the endpoint has added the video stream.

Parameters

Returns

  • type:

    Unit

onRemoteVideoStreamRemoved

Copy URL
fun onRemoteVideoStreamRemoved(endpoint: 

Endpoint

,
videoStream:

RemoteVideoStream

):

Unit

This API is in beta and subject to change.

Triggered after the endpoint has removed the video stream.

Event is not triggered on a conference end.

Parameters

Returns

  • type:

    Unit

onEndpointVoiceActivityChanged

Copy URL
fun onEndpointVoiceActivityChanged(endpoint: 

Endpoint

,
voiceDetected:

Boolean

):

Unit

This API is in beta and subject to change.

Triggered when a voice activity of the endpoint is detected or stopped in a conference call.

Parameters

  • endpoint:

    Endpoint

    The endpoint that triggered this event

  • voiceDetected:

    Boolean

    Whether the remote participant is currently talking

Returns

  • type:

    Unit

onEndpointMuteStateChanged

Copy URL
fun onEndpointMuteStateChanged(endpoint: 

Endpoint

,
muted:

Boolean

):

Unit

This API is in beta and subject to change.

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

  • type:

    Unit

onStartReceivingVideoStream

Copy URL
fun onStartReceivingVideoStream(endpoint: 

Endpoint

,
videoStream:

RemoteVideoStream

):

Unit

This API is in beta and subject to change.

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

  • endpoint:

    Endpoint

    The endpoint that triggered this event

  • videoStream:

    RemoteVideoStream

    The remote video stream where video receive is started

Returns

  • type:

    Unit

onStopReceivingVideoStream

Copy URL
fun onStopReceivingVideoStream(endpoint: 

Endpoint

,
videoStream:

RemoteVideoStream

,
reason:

VideoStreamReceiveStopReason

):

Unit

This API is in beta and subject to change.

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

Returns

  • type:

    Unit