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

    Type Alias MediaKeySystem

    MediaKeySystem:
        | string
        | {
            certificate?: MediaKeyCertificate;
            configurations?: MediaKeySystemConfiguration[];
            license?: MediaKeyLicense;
        }

    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
    • {
          certificate?: MediaKeyCertificate;
          configurations?: MediaKeySystemConfiguration[];
          license?: MediaKeyLicense;
      }
      • Optionalcertificate?: MediaKeyCertificate

        The certificate URL if needed (for FairPlay) or the certificate data as Uint8Array.

      • Optionalconfigurations?: MediaKeySystemConfiguration[]

        Optional MediaKeySystemConfiguration[].

        If metadata is available, configuration may enrich capabilities that do not define contentType before calling requestMediaKeySystemAccess(). Explicit contentType values provided by the user should take precedence over metadata-derived values.

        If metadata is not available, these configurations are expected to be complete enough to be used as-is.

      • Optionallicense?: MediaKeyLicense

        The license URL or configuration for the key system. If it's a string, it's the URL of the license server.