Skip to content

WebrtcEndpoint

Kenan Genjac edited this page Feb 18, 2025 · 3 revisions

extends Endpoint



constructor(identity, displatName)

Description

Creates a new instance of WebrtcEndpoint.

Arguments

  • identity: string - Identifier of the participant on this endpoint
  • displatName: string - Display name of the participant on this endpoint

Example

let webrtcEndpoint = new WebrtcEndpoint("identity", "displayName");
console.log(`This endpoints identifier is: ${webrtcEndpoint.identifier} and the display identifier is: ${webrtcEndpoint.displayIdentifier}`);



identifier()

Description

Returns the value of the display identifier on this endpoint represented by the participant's display name.

Arguments

  • none

Returns

  • string - Identifier of the participant on this endpoint

Example

console.log(`Identifier of the participant on this endpoint: ${endpoint.identifier}`);



displayIdentifier()

Description

Returns the value of the participant's display identifier on this endpoint as a string.

Arguments

  • none

Returns

  • string - Display identifier of the participant on this endpoint

Example

console.log(`Display identifier of the participant on this endpoint: ${endpoint.displayIdentifier}`);

Tutorials

Migration guides

Reference documentation

Clone this wiki locally