Skip to navigation

EndpointEvent (enum)

Web SDK v5 API reference
View as Markdown

EndpointEvents

Values

RemoteMediaAdded

RemoteMediaAdded: "RemoteMediaAdded"

Triggered after an endpoint has added an audio or video stream.

Listener is called with EndpointRemoteMediaAdded and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
streamRemoteStreamRequiredRemote audio or video stream.
typeStreamTypeRequiredRemote stream type.

RemoteMediaRemoved

RemoteMediaRemoved: "RemoteMediaRemoved"

Triggered after an endpoint has removed an audio or video stream.

Listener is called with EndpointRemoteMediaRemoved and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
streamRemoteStreamRequiredRemote audio or video stream.
typeStreamTypeRequiredRemote stream type.

StartReceivingAudioStream

StartReceivingAudioStream: "StartReceivingAudioStream"

Triggered when receiving video on a remote video stream is started after previously being stopped.

Listener is called with EndpointStartReceivingAudioStream and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
streamIdstringRequiredRemote audio stream id.

StartReceivingVideoStream

StartReceivingVideoStream: "StartReceivingVideoStream"

Triggered when receiving video on a remote video stream is started after previously being stopped.

The event is triggered if:

  • Endpoint.startReceivingVideo has been called and the request has been processed successfully.
  • A network issue that caused the Voximplant Cloud to stop receiving video of the remote video stream is gone.

The event is not triggered if the endpoint client has started sending video via the Conference.addStream API.

Listener is called with EndpointStartReceivingVideoStream and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
streamIdstringRequiredRemote video stream id.

StopReceivingAudioStream

StopReceivingAudioStream: "StopReceivingAudioStream"

Triggered when receiving audio on a remote audio stream is stopped.

Listener is called with EndpointStopReceivingAudioStream and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
reasonStreamReceiveStopReasonRequiredReason for the event, such as receiving audio, is disabled by the client or automatically.
streamIdstringRequiredRemote audio stream id.

StopReceivingVideoStream

StopReceivingVideoStream: "StopReceivingVideoStream"

Triggered when receiving video on a remote video stream is stopped.

Receiving video on a remote video stream can be stopped due to:

If the receiving video 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 EndpointEvent.StartReceivingVideoStream event is triggered.

The event is not triggered if the endpoint client has stopped sending video via the Conference.removeStream API.

Listener is called with EndpointStopReceivingVideoStream and payload:

Parameters

ParameterTypeRequirementDescription
endpointIdstringRequiredEndpoint id.
reasonStreamReceiveStopReasonRequiredReason for the event, such as receiving video, is disabled by the client or automatically.
streamIdstringRequiredRemote video stream id.