//#region src/core/drm.d.ts /** * EME key system identifiers. The value is what a CDM is asked for, and what * `source.drm` — and each engine's own DRM configuration — is keyed by. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess */ declare const KeySystems: { readonly FAIRPLAY: 'com.apple.fps'; readonly WIDEVINE: 'com.widevine.alpha'; readonly PLAYREADY: 'com.microsoft.playready'; readonly CLEARKEY: 'org.w3.clearkey'; }; type KeySystem = (typeof KeySystems)[keyof typeof KeySystems]; /** Where one key system's licenses come from. */ interface DrmSystemConfig { /** License server the CDM's license request is POSTed to. */ licenseUrl: string; /** * URL of the DRM server (application) certificate. FairPlay needs one unless * its CDM is pre-provisioned; Widevine and PlayReady ignore it. */ serverCertificateUrl?: string | undefined; } /** * License servers keyed by EME key system id — the shape of `source.drm`. * * Name every system you hold a license server for: which one is negotiated is * the browser's choice, and each playback path reads the systems it can reach. * hls.js's own `drmSystems` takes the same shape, so a single object describes * DRM for either engine. */ type DrmSystemsConfig = Partial>; //#endregion export { DrmSystemConfig, DrmSystemsConfig, KeySystem, KeySystems }; //# sourceMappingURL=drm.d.ts.map