feat(hls): license every content key of a FairPlay bridge playlist that rotates its key

This commit is contained in:
imSp4rky
2026-12-01 18:32:36 -07:00
parent e0880812d5
commit 41c2b3d86a
12 changed files with 478 additions and 76 deletions
+8
View File
@@ -499,6 +499,14 @@ CDM with `drm_stub`, and sends the challenge to the licence callback of the serv
the server reads the same key ID at the licence step, so it accepts the DRM object of the client. A
licence that gives no content key stops the track before it downloads a segment.
unshackle reads one key ID from each init segment. So it licenses a playlist that changes its content key
correctly only when each content key has its own init segment with a real `tenc` key ID, after an
`EXT-X-DISCONTINUITY`. When the first key ID is real, the download also reads the `tenc` key ID of
each other init segment of the encrypted segments, and licenses each real key ID in its own licence step. A
PlayReady DRM object then has one header for each key ID, because the header of `drm_stub` holds
one key ID. A key ID that gets no content key stops the track before it downloads a segment. An
init segment that gives no real key ID does not count.
A service that must choose the DRM system itself, or one that knows the key ID, puts the DRM object
on the track: