Interface Endpoint<EndpointMetadata, TrackMetadata>

Interface describing Endpoint.

interface Endpoint<EndpointMetadata, TrackMetadata> {
    id: string;
    metadata?: EndpointMetadata;
    metadataParsingError?: any;
    rawMetadata: any;
    tracks: Map<string, TrackContext<EndpointMetadata, TrackMetadata>>;
    type: string;
}

Type Parameters

  • EndpointMetadata
  • TrackMetadata

Properties

id: string

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

metadata?: EndpointMetadata

Any information that was provided in WebRTCEndpoint.connect.

metadataParsingError?: any
rawMetadata: any

List of tracks that are sent by the endpoint.

type: string

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