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
+3 -1
View File
@@ -80,7 +80,9 @@ appropriate one for each track.
!!! note "HLS tracks with only a FairPlay key tag"
unshackle has no FairPlay CDM. When each `EXT-X-KEY` of an fMP4 playlist is sample encryption
for a DRM system that unshackle cannot license, such as FairPlay, unshackle reads the key ID from
the init segment and asks for the licence with your PlayReady or Widevine device. This works
the init segment and asks for the licence with your PlayReady or Widevine device. 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 key ID, after an `EXT-X-DISCONTINUITY`. This works
only when the licence server of the platform also issues that content key for that DRM system. MPEG-TS SAMPLE-AES stops with an error.
Each key ID must name one content key: a playlist that encrypts two blocks with two content keys under
one key ID gives wrong frames. A clear part under `METHOD=NONE` must have its own init segment, or the