> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# EndpointListener (interface)

[com.voximplant.android.sdk.calls](/api-reference/androidsdk3/android/sdk/calls/overview)

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

**Methods**

* [onEndpointMuteStateChanged](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onendpointmutestatechanged)
* [onEndpointVoiceActivityChanged](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onendpointvoiceactivitychanged)
* [onRemoteVideoStreamAdded](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onremotevideostreamadded)
* [onRemoteVideoStreamRemoved](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onremotevideostreamremoved)
* [onStartReceivingVideoStream](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onstartreceivingvideostream)
* [onStopReceivingVideoStream](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onstopreceivingvideostream)

## Methods

### onEndpointMuteStateChanged

`fun onEndpointMuteStateChanged(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/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-reference/androidsdk3/android/sdk/calls/conference#muteaudio) API call on an endpoint client.

**Parameters**

| Parameter  | Type                                                                | Requirement | Description |
| ---------- | ------------------------------------------------------------------- | ----------- | ----------- |
| `endpoint` | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint) |             |             |
| `muted`    | `Boolean`                                                           |             |             |

**Returns:** Unit

### onEndpointVoiceActivityChanged

`fun onEndpointVoiceActivityChanged(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`, voiceDetected: Boolean): Unit`

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

**Parameters**

| Parameter       | Type                                                                | Requirement | Description                                         |
| --------------- | ------------------------------------------------------------------- | ----------- | --------------------------------------------------- |
| `endpoint`      | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint) |             | Endpoint that triggered this event                  |
| `voiceDetected` | `Boolean`                                                           |             | Whether the remote participant is currently talking |

**Returns:** Unit

### onRemoteVideoStreamAdded

`fun onRemoteVideoStreamAdded(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`, videoStream: `[`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream)`): Unit`

Triggered after the endpoint has added the video stream.

**Parameters**

| Parameter     | Type                                                                                  | Requirement | Description                        |
| ------------- | ------------------------------------------------------------------------------------- | ----------- | ---------------------------------- |
| `endpoint`    | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)                   |             | Endpoint that triggered this event |
| `videoStream` | [`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream) |             | Remote video stream                |

**Returns:** Unit

### onRemoteVideoStreamRemoved

`fun onRemoteVideoStreamRemoved(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`, videoStream: `[`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream)`): Unit`

Triggered after the endpoint has removed the video stream.

Event is not triggered on a conference end.

**Parameters**

| Parameter     | Type                                                                                  | Requirement | Description                        |
| ------------- | ------------------------------------------------------------------------------------- | ----------- | ---------------------------------- |
| `endpoint`    | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)                   |             | Endpoint that triggered this event |
| `videoStream` | [`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream) |             | Remote video stream                |

**Returns:** Unit

### onStartReceivingVideoStream

`fun onStartReceivingVideoStream(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`, videoStream: `[`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/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](/api-reference/androidsdk3/android/sdk/calls/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-reference/androidsdk3/android/sdk/calls/conference#addvideostream) API.

**Parameters**

| Parameter     | Type                                                                                  | Requirement | Description                                        |
| ------------- | ------------------------------------------------------------------------------------- | ----------- | -------------------------------------------------- |
| `endpoint`    | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)                   |             | Endpoint that triggered this event                 |
| `videoStream` | [`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream) |             | Remote video stream where video receive is started |

**Returns:** Unit

### onStopReceivingVideoStream

`fun onStopReceivingVideoStream(endpoint: `[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`, videoStream: `[`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream)`, reason: `[`VideoStreamReceiveStopReason`](/api-reference/androidsdk3/android/sdk/calls/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](/api-reference/androidsdk3/android/sdk/calls/endpoint#stopreceivevideo) has been called and the request has been processed successfully. In this case the value of the "reason" parameter is [VideoStreamReceiveStopReason.Manual](/api-reference/androidsdk3/android/sdk/calls/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](/api-reference/androidsdk3/android/sdk/calls/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-reference/androidsdk3/android/sdk/calls/conference#removevideostream) API.

**Parameters**

| Parameter     | Type                                                                                                        | Requirement | Description                                                                                                                                                                                                                                                                                            |
| ------------- | ----------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `endpoint`    | [`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)                                         |             | Endpoint that triggered this event                                                                                                                                                                                                                                                                     |
| `videoStream` | [`RemoteVideoStream`](/api-reference/androidsdk3/android/sdk/calls/remotevideostream)                       |             | Remote video stream where video receive is stopped                                                                                                                                                                                                                                                     |
| `reason`      | [`VideoStreamReceiveStopReason`](/api-reference/androidsdk3/android/sdk/calls/videostreamreceivestopreason) |             | Reason video receive has stopped, for example [VideoStreamReceiveStopReason.Manual](/api-reference/androidsdk3/android/sdk/calls/videostreamreceivestopreason#manual) or [VideoStreamReceiveStopReason.Automatic](/api-reference/androidsdk3/android/sdk/calls/videostreamreceivestopreason#automatic) |

**Returns:** Unit