Interface MKDrmAPI

Hierarchy

  • MKDrmAPI

Methods

  • Tests and retrieves a list of all supported DRM systems in the current user agent.

    Returns Promise<string[]>

    A Promise that resolves to an array of strings with the supported DRM systems after fulfillment. Should never be rejected.

  • Checks if a DRM system is supported in the current user agent.

    Parameters

    • drmSystem: string

      A KeySystem string to test against

    Returns Promise<string>

    Resolves with the DRM system string if it is supported, or rejects with an error message if not

  • Starts a DRM license renewal request for the license with the specified ID.

    Works with PlayReady DRM only. (Widevine DRM is managing license renewals on its own). FairPlay DRM license renewals are not supported yet.

    Parameters

    • drmLicenseId: string

      The ID of the DrmLicense that shall be renewed.

    Returns Promise<void>

    A promise that resolves, if the license renewal request was successful and rejects otherwise.