Params: {
    accessToken?: string;
    contentProtection?: Record<string, KeySystem>;
    endPoint: string;
    iceServer?: RTCIceServer;
    mediaExt?: string;
    query?: URLSearchParams;
    streamName?: string;
}

Parameters of connections

Type declaration

  • Optional accessToken?: string

    Optional access token to use to join a private stream

  • Optional contentProtection?: Record<string, KeySystem>

    Map of keys to content protection settings for encrypted streams The key can be "com.apple.fps" for example for FairPlay

  • endPoint: string

    endPoint to connect. Can be only a host(:port) but accept also a full url of connection, it can help to force a path or indicate a protocol preference

  • Optional iceServer?: RTCIceServer

    iceServer to use while connecting to a WebRTC stream

  • Optional mediaExt?: string

    Optional media extension (mp4, flv, ts, rts), usefull for protocol like WebRTS which supports different container type. When not set, it's also an output parameter for defineMediaExt to indicate what is the media type selected

  • Optional query?: URLSearchParams

    Optional query to add into the generated url of connection

  • Optional streamName?: string

    The name of the stream to join. If endPoint is a complete URL and streamName is not provided, buildURL will set this parameter automatically using the second part of the URL's path (the first part being the protocol name), or the first path if no other part exists.

Generated using TypeDoc