Rate this page:

Endpoint

Interface that represents a remote participant in a conference.

Methods

addEventListener

Copy URL
addEventListener(eventName: 

EndpointEvent

,
listener:

(event: AnyEndpointEvent) => void | Promise<void>

,
options:

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

  • eventName:

    EndpointEvent

    Event name

  • listener:

    (event: AnyEndpointEvent) => void | Promise<void>

    Handler function that is triggered when an event of the specified type occurs

  • Object that specifies characteristics about the event listener

Returns

  • type:

    void

getAnyAudioStreams

Copy URL
getAnyAudioStreams(): 

RemoteStream[]

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

Returns

getAnyVideoStreams

Copy URL
getAnyVideoStreams(): 

RemoteStream[]

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

Returns

getAudioStreams

Copy URL
getAudioStreams(): 

RemoteStream[]

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

Returns

getScreenSharingStreams

Copy URL
getScreenSharingStreams(): 

RemoteStream[]

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

Returns

getVideoStreams

Copy URL
getVideoStreams(): 

RemoteStream[]

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

Returns

removeEventListener

Copy URL
removeEventListener(eventName: 

EndpointEvent

,
listener:

(event: AnyEndpointEvent) => void | Promise<void>

):

void

Removes a previously registered handler for the specified event.

Parameters

Returns

  • type:

    void

requestVideoSize

Copy URL
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

  • width:

    number

    Requested video frame width

  • height:

    number

    Requested video frame height

Returns

  • type:

    void

startReceivingAudio

Copy URL
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 event is triggered.

Returns

  • type:

    void

startReceivingVideo

Copy URL
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 event is triggered.

Returns

  • type:

    void

stopReceivingAudio

Copy URL
stopReceivingAudio(): 

void

Stops receiving audio from the endpoint.

If the request is processed successfully, the EndpointEvent.StopReceivingAudioStream event is triggered with the StreamReceiveStopReason.Manual reason.

Returns

  • type:

    void

stopReceivingVideo

Copy URL
stopReceivingVideo(): 

void

Stops receiving video from the endpoint.

If the request is processed successfully, the EndpointEvent.StopReceivingVideoStream event is triggered with the StreamReceiveStopReason.Manual reason.

Returns

  • type:

    void

Props

displayName

Copy URL
displayName: 

string

Endpoint user display name.

id

Copy URL
id: 

string

Endpoint id.

isMicrophoneMuted

Copy URL
isMicrophoneMuted: 

Watchable<boolean>

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

isScreenSharing

Copy URL
isScreenSharing: 

boolean

Whether the endpoint represents the remote participant screen sharing.

streams

Copy URL
streams: 

Map<string, RemoteStream>

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

userName

Copy URL
userName: 

string

Endpoint user name.

voiceActivityDetected

Copy URL
voiceActivityDetected: 

Watchable<boolean>

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