Endpoint
Interface that represents any remote media unit in a call. Current endpoints can be retrieved via the Call.getEndpoints method. Endpoint can be :
Methods
off
off(event: , handler: Function
): void
Remove a handler for the specified event. The method is a shorter equivalent for removeEventListener. If a number of events has the same function as a handler, the method can be called multiple times with the same handler argument.
Parameters
event:
handler:
Function
Optional
Returns
type:
void
on
on(event: , handler: Function
, options: ): void
Register a handler for the specified event. The method is a shorter equivalent for addEventListener. One event can have more than one handler; handlers are executed in order of registration. Use the Endpoint.off method to delete a handler.
Parameters
event:
handler:
Function
options:
Optional
Returns
type:
void
useAudioOutput
useAudioOutput(id: string
): void
Set audio output device for current Endpoint. Now supported by Google Chrome only
Parameters
id:
string
Returns
type:
void
Props
displayName
displayName: string
Get user display name of the endpoint.
id
id: string
Unique ID of current Endpoint
isDefault
isDefault: boolean
userName
userName: string
Get user name of the endpoint.