Interface describing Endpoint.

interface Endpoint {
    id: string;
    metadata?: unknown;
    tracks: Map<string, TrackContext>;
    type: string;
}

Properties

Properties

id: string

Endpoint's id. It is assigned by user in custom logic that use backend API.

metadata?: unknown

Any information that was provided in WebRTCEndpoint.connect.

tracks: Map<string, TrackContext>

List of tracks that are sent by the endpoint.

type: string

Type of the endpoint, e.g. "webrtc", "hls" or "rtsp".