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

# EndpointEvent (enum)

[EndpointEvents](/api-reference/websdk5/conference/endpointevents/overview)

**Values**

* [RemoteMediaAdded](/api-reference/websdk5/conference/endpointevents/endpointevent#remotemediaadded)
* [RemoteMediaRemoved](/api-reference/websdk5/conference/endpointevents/endpointevent#remotemediaremoved)
* [StartReceivingAudioStream](/api-reference/websdk5/conference/endpointevents/endpointevent#startreceivingaudiostream)
* [StartReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointevent#startreceivingvideostream)
* [StopReceivingAudioStream](/api-reference/websdk5/conference/endpointevents/endpointevent#stopreceivingaudiostream)
* [StopReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointevent#stopreceivingvideostream)

## Values

### RemoteMediaAdded

`RemoteMediaAdded: "RemoteMediaAdded"`

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

Listener is called with [EndpointRemoteMediaAdded](/api-reference/websdk5/conference/endpointevents/endpointremotemediaadded) and payload:

**Parameters**

| Parameter    | Type                                                         | Requirement | Description                   |
| ------------ | ------------------------------------------------------------ | ----------- | ----------------------------- |
| `endpointId` | `string`                                                     | Required    | Endpoint id.                  |
| `stream`     | [`RemoteStream`](/api-reference/websdk5/stream/remotestream) | Required    | Remote audio or video stream. |
| `type`       | [`StreamType`](/api-reference/websdk5/stream/streamtype)     | Required    | Remote stream type.           |

### RemoteMediaRemoved

`RemoteMediaRemoved: "RemoteMediaRemoved"`

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

Listener is called with [EndpointRemoteMediaRemoved](/api-reference/websdk5/conference/endpointevents/endpointremotemediaremoved) and payload:

**Parameters**

| Parameter    | Type                                                         | Requirement | Description                   |
| ------------ | ------------------------------------------------------------ | ----------- | ----------------------------- |
| `endpointId` | `string`                                                     | Required    | Endpoint id.                  |
| `stream`     | [`RemoteStream`](/api-reference/websdk5/stream/remotestream) | Required    | Remote audio or video stream. |
| `type`       | [`StreamType`](/api-reference/websdk5/stream/streamtype)     | Required    | Remote 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](/api-reference/websdk5/conference/endpointevents/endpointstartreceivingaudiostream) and payload:

**Parameters**

| Parameter    | Type     | Requirement | Description             |
| ------------ | -------- | ----------- | ----------------------- |
| `endpointId` | `string` | Required    | Endpoint id.            |
| `streamId`   | `string` | Required    | Remote 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](/api-reference/websdk5/conference/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-reference/websdk5/conference/conference#addstream) API.

Listener is called with [EndpointStartReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointstartreceivingvideostream) and payload:

**Parameters**

| Parameter    | Type     | Requirement | Description             |
| ------------ | -------- | ----------- | ----------------------- |
| `endpointId` | `string` | Required    | Endpoint id.            |
| `streamId`   | `string` | Required    | Remote video stream id. |

### StopReceivingAudioStream

`StopReceivingAudioStream: "StopReceivingAudioStream"`

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

Listener is called with [EndpointStopReceivingAudioStream](/api-reference/websdk5/conference/endpointevents/endpointstopreceivingaudiostream) and payload:

**Parameters**

| Parameter    | Type                                                                                   | Requirement | Description                                                                                |
| ------------ | -------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------ |
| `endpointId` | `string`                                                                               | Required    | Endpoint id.                                                                               |
| `reason`     | [`StreamReceiveStopReason`](/api-reference/websdk5/conference/streamreceivestopreason) | Required    | Reason for the event, such as receiving audio, is disabled by the client or automatically. |
| `streamId`   | `string`                                                                               | Required    | Remote 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:

* [Endpoint.stopReceivingVideo](/api-reference/websdk5/conference/endpoint#stopreceivingvideo) has been called and the request has been processed successfully. In this case
  the value of the “reason” parameter is [StreamReceiveStopReason.Manual](/api-reference/websdk5/conference/streamreceivestopreason#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 [StreamReceiveStopReason.Automatic](/api-reference/websdk5/conference/streamreceivestopreason#automatic).

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](/api-reference/websdk5/conference/endpointevents/endpointevent#startreceivingvideostream) event is triggered.

The event is not triggered if the endpoint client has stopped sending video via
the [Conference.removeStream](/api-reference/websdk5/conference/conference#removestream) API.

Listener is called with [EndpointStopReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointstopreceivingvideostream) and payload:

**Parameters**

| Parameter    | Type                                                                                   | Requirement | Description                                                                                |
| ------------ | -------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------ |
| `endpointId` | `string`                                                                               | Required    | Endpoint id.                                                                               |
| `reason`     | [`StreamReceiveStopReason`](/api-reference/websdk5/conference/streamreceivestopreason) | Required    | Reason for the event, such as receiving video, is disabled by the client or automatically. |
| `streamId`   | `string`                                                                               | Required    | Remote video stream id.                                                                    |