@ceeblue/web-utils
    Preparing search index...

    Type Alias KeySystem

    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

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

        Audio robustness level

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

      • Optionalcertificate?: string | Uint8Array

        The certificate URL if needed (for FairPlay)

        Or directly the certificate

      • Optionalheaders?: Record<string, string>

        The additional HTTP headers to send to the license server

      • licenseUrl: string

        The license server URL

      • OptionalvideoRobustness?: string[]

        Video robustness level

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