Endpoint
Represents any remote media unit in a session. Endpoint can be ASR, Recorder, Player or another Call (e.g., which is joined to the conference). Add the following line to your scenario code to use the class:
require(Modules.Conference);
Methods
getCall
getCall():
Returns the endpoint's call if the endpoint is not a player or recorder instance.
Returns
type:
getDirection
getDirection(): SEND
| RECEIVE
| BOTH
Returns the direction value.
Returns
type:
SEND
type:
RECEIVE
type:
BOTH
getMode
getMode(): MIX
| FORWARD
Returns mode value.
Returns
type:
MIX
type:
FORWARD
id
id(): string
Returns the endpoint id.
Returns
type:
string
manageEndpoint
manageEndpoint(params: ): Promise<void>
Specifies other endpoints' streams (audio and/or video) to receive.
Parameters
params:
Returns
type:
Promise<void>
setDisplayName
setDisplayName(displayName: string
): void
Sets the display name for the specified endpoint. When the display name is set, all SDK clients receive EndpointEvents.InfoUpdated event.
Parameters
displayName:
string
Returns
type:
void
setMaxBitrate
setMaxBitrate(bitrate: number
): void
Sets the maximum possible video bitrate for the endpoint.
Parameters
bitrate:
number
Returns
type:
void