KeySystem: string | {
    audioRobustness?: string[];
    certificate?: string | Uint8Array;
    headers?: Record<string, string>;
    licenseUrl: string;
    videoRobustness?: string[];
}

Parameters of a key system for encrypted streams (DRM)

If the key system is a string, it's the URL of the license server.

If the key system is an object, it's a key system configuration with more parameters.

Type declaration

  • Optional audioRobustness?: string[]

    Audio robustness level

    A list of robustness levels, prioritized by the order of the array.

  • Optional certificate?: string | Uint8Array

    The certificate URL if needed (for FairPlay)

    Or directly the certificate

  • Optional headers?: Record<string, string>

    The additional HTTP headers to send to the license server

  • licenseUrl: string

    The license server URL

  • Optional videoRobustness?: string[]

    Video robustness level

    A list of robustness levels, prioritized by the order of the array.

Generated using TypeDoc