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

# Endpoint (interface)

[Conference](/api-reference/websdk5/conference/overview)

Interface that represents a remote participant in a conference.

**Methods**

* [addEventListener](/api-reference/websdk5/conference/endpoint#addeventlistener)
* [getAnyAudioStreams](/api-reference/websdk5/conference/endpoint#getanyaudiostreams)
* [getAnyVideoStreams](/api-reference/websdk5/conference/endpoint#getanyvideostreams)
* [getAudioStreams](/api-reference/websdk5/conference/endpoint#getaudiostreams)
* [getScreenSharingStreams](/api-reference/websdk5/conference/endpoint#getscreensharingstreams)
* [getVideoStreams](/api-reference/websdk5/conference/endpoint#getvideostreams)
* [removeEventListener](/api-reference/websdk5/conference/endpoint#removeeventlistener)
* [requestVideoSize](/api-reference/websdk5/conference/endpoint#requestvideosize)
* [startReceivingAudio](/api-reference/websdk5/conference/endpoint#startreceivingaudio)
* [startReceivingVideo](/api-reference/websdk5/conference/endpoint#startreceivingvideo)
* [stopReceivingAudio](/api-reference/websdk5/conference/endpoint#stopreceivingaudio)
* [stopReceivingVideo](/api-reference/websdk5/conference/endpoint#stopreceivingvideo)

**Properties**

* [displayName](/api-reference/websdk5/conference/endpoint#displayname)
* [id](/api-reference/websdk5/conference/endpoint#id)
* [isMicrophoneMuted](/api-reference/websdk5/conference/endpoint#ismicrophonemuted)
* [isScreenSharing](/api-reference/websdk5/conference/endpoint#isscreensharing)
* [streams](/api-reference/websdk5/conference/endpoint#streams)
* [userName](/api-reference/websdk5/conference/endpoint#username)
* [voiceActivityDetected](/api-reference/websdk5/conference/endpoint#voiceactivitydetected)

## Methods

### addEventListener

`addEventListener(eventName: `[`EndpointEvent`](/api-reference/websdk5/conference/endpointevents/endpointevent)`, listener: (event: `[`AnyEndpointEvent`](/api-reference/websdk5/conference/endpointevents/anyendpointevent)`) => void | Promise<void>, options: `[`ListenerOptions`](/api-reference/websdk5/core/listeneroptions)`): void`

Registers a handler for the specified event.

One event can have more than one handler; handlers are executed in order of registration.

**Parameters**

| Parameter   | Type                                                                                                                          | Requirement | Description                                                                   |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------- |
| `eventName` | [`EndpointEvent`](/api-reference/websdk5/conference/endpointevents/endpointevent)                                             | Required    | Event name                                                                    |
| `listener`  | `(event: `[`AnyEndpointEvent`](/api-reference/websdk5/conference/endpointevents/anyendpointevent)`) => void \| Promise<void>` | Required    | Handler function that is triggered when an event of the specified type occurs |
| `options`   | [`ListenerOptions`](/api-reference/websdk5/core/listeneroptions)                                                              | Required    | Object that specifies characteristics about the event listener                |

**Returns:** void

### getAnyAudioStreams

`getAnyAudioStreams(): `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`[]`

Returns the array of all the remote audio streams associated with the endpoint.

**Returns:** [RemoteStream](/api-reference/websdk5/stream/remotestream)\[]

### getAnyVideoStreams

`getAnyVideoStreams(): `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`[]`

Returns the array of all the remote audio streams associated with the endpoint.

**Returns:** [RemoteStream](/api-reference/websdk5/stream/remotestream)\[]

### getAudioStreams

`getAudioStreams(): `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`[]`

Returns  array of the remote audio streams associated with the endpoint.

**Returns:** [RemoteStream](/api-reference/websdk5/stream/remotestream)\[]

### getScreenSharingStreams

`getScreenSharingStreams(): `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`[]`

Returns the array of the screen sharing video streams associated with the endpoint.

**Returns:** [RemoteStream](/api-reference/websdk5/stream/remotestream)\[]

### getVideoStreams

`getVideoStreams(): `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`[]`

Returns the array of the remote video streams associated with the endpoint.

**Returns:** [RemoteStream](/api-reference/websdk5/stream/remotestream)\[]

### removeEventListener

`removeEventListener(eventName: `[`EndpointEvent`](/api-reference/websdk5/conference/endpointevents/endpointevent)`, listener: (event: `[`AnyEndpointEvent`](/api-reference/websdk5/conference/endpointevents/anyendpointevent)`) => void | Promise<void>): void`

Removes a previously registered handler for the specified event.

**Parameters**

| Parameter   | Type                                                                                                                          | Requirement | Description                                      |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------ |
| `eventName` | [`EndpointEvent`](/api-reference/websdk5/conference/endpointevents/endpointevent)                                             | Required    | Event name                                       |
| `listener`  | `(event: `[`AnyEndpointEvent`](/api-reference/websdk5/conference/endpointevents/anyendpointevent)`) => void \| Promise<void>` | Required    | Handler function to remove from the event target |

**Returns:** void

### requestVideoSize

`requestVideoSize(width: number, height: number): void`

Requests the specified video size for a remote video stream.

The stream resolution may be changed to the closest to the specified width and height.

It only makes an impact if the endpoint has enabled the simulcast feature.

**Parameters**

| Parameter | Type     | Requirement | Description                  |
| --------- | -------- | ----------- | ---------------------------- |
| `width`   | `number` | Required    | Requested video frame width  |
| `height`  | `number` | Required    | Requested video frame height |

**Returns:** void

### startReceivingAudio

`startReceivingAudio(): void`

Starts receiving audio from the endpoint.

If the video has been already receiving, this method call is ignored.

If the request is processed successfully, the [EndpointEvent.StartReceivingAudioStream](/api-reference/websdk5/conference/endpointevents/endpointevent#startreceivingaudiostream) event is triggered.

**Returns:** void

### startReceivingVideo

`startReceivingVideo(): void`

Starts receiving video from the endpoint.

If the video has been already receiving, this method call is ignored.

If the request is processed successfully, the [EndpointEvent.StartReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointevent#startreceivingvideostream) event is triggered.

**Returns:** void

### stopReceivingAudio

`stopReceivingAudio(): void`

Stops receiving audio from the endpoint.

If the request is processed successfully, the [EndpointEvent.StopReceivingAudioStream](/api-reference/websdk5/conference/endpointevents/endpointevent#stopreceivingaudiostream) event is triggered
with the [StreamReceiveStopReason.Manual](/api-reference/websdk5/conference/streamreceivestopreason#manual) reason.

**Returns:** void

### stopReceivingVideo

`stopReceivingVideo(): void`

Stops receiving video from the endpoint.

If the request is processed successfully, the [EndpointEvent.StopReceivingVideoStream](/api-reference/websdk5/conference/endpointevents/endpointevent#stopreceivingvideostream) event is triggered
with the [StreamReceiveStopReason.Manual](/api-reference/websdk5/conference/streamreceivestopreason#manual) reason.

**Returns:** void

## Properties

### displayName

`displayName: string`

Endpoint user display name.

### id

`id: string`

Endpoint id.

### isMicrophoneMuted

`isMicrophoneMuted: `[`Watchable`](/api-reference/websdk5/core/watchable/watchable)`<boolean>`

Watchable property that allows getting the remote participant mute status and observing its changes.

### isScreenSharing

`isScreenSharing: boolean`

Whether the endpoint represents the remote participant screen sharing.

### streams

`streams: Map<string, `[`RemoteStream`](/api-reference/websdk5/stream/remotestream)`>`

Map of the remote audio and video streams associated with the endpoint.

### userName

`userName: string`

Endpoint user name.

### voiceActivityDetected

`voiceActivityDetected: `[`Watchable`](/api-reference/websdk5/core/watchable/watchable)`<boolean>`

Watchable property that allows getting the voice activity status of the remote participant and observing its changes.