Derives the DRM metadata for fMP4 segments encrypted with the given
EXT-X-KEY, or null if the key does not describe EME-decryptable content.
SAMPLE-AES is cbcs and SAMPLE-AES-CTR is cenc common encryption. The
KEYFORMAT identifies the DRM system: FairPlay, PlayReady, or a urn:uuid:
DRM system id (e.g. Widevine), resolved to key systems the same way as a
DASH ContentProtection scheme. METHOD=NONE, whole-segment AES-128, and
identity (clear key URI) keys are not EME-decryptable and return null.
FairPlay sessions are created from the media element's in-band encrypted
events, which report the init segment's sinf box. With standard EME
(DrmKeySystem.FAIR_PLAY), the CDM keys the session by the binary key
id and also sends it as the SPC's asset id. With WebKit-prefixed EME
(DrmKeySystem.FAIR_PLAY_2_0), the session is started from the
skd:// asset id, supplied as each protection's
DrmProtection.contentId, and sent as the SPC's asset id. The legacy
DrmKeySystem.FAIR_PLAY_1_0 key system is excluded: it only decrypts
natively played HLS, not MSE.
Derives the DRM metadata for fMP4 segments encrypted with the given EXT-X-KEY, or null if the key does not describe EME-decryptable content.
SAMPLE-AES is
cbcsand SAMPLE-AES-CTR iscenccommon encryption. The KEYFORMAT identifies the DRM system: FairPlay, PlayReady, or aurn:uuid:DRM system id (e.g. Widevine), resolved to key systems the same way as a DASH ContentProtection scheme. METHOD=NONE, whole-segment AES-128, andidentity(clear key URI) keys are not EME-decryptable and return null.FairPlay sessions are created from the media element's in-band
encryptedevents, which report the init segment'ssinfbox. With standard EME (DrmKeySystem.FAIR_PLAY), the CDM keys the session by the binary key id and also sends it as the SPC's asset id. With WebKit-prefixed EME (DrmKeySystem.FAIR_PLAY_2_0), the session is started from theskd://asset id, supplied as each protection's DrmProtection.contentId, and sent as the SPC's asset id. The legacy DrmKeySystem.FAIR_PLAY_1_0 key system is excluded: it only decrypts natively played HLS, not MSE.