fix(drm): stop a bridged FairPlay track whose server-CDM answer or licence key does not decrypt it

This commit is contained in:
imSp4rky
2026-12-01 21:07:27 -07:00
parent ed6ed02033
commit cefd5295ac
15 changed files with 350 additions and 25 deletions
+3 -1
View File
@@ -550,7 +550,9 @@ The download reads the key ID from the init segment, builds a DRM object for tha
the service on the server has the hook. The server reads the same key ID at the licence step, accepts
the DRM object of the client and sends the challenge to the hook of its service. A server that cannot
read the key ID refuses the challenge. A licence that gives no content key stops the track before it
downloads a segment.
downloads a segment. With the server CDM, the batch licence names the key IDs that the server read, so an
answer without their content keys stops the track in the same way. A content key that does not decode
the downloaded track stops the track with an error, and unshackle keeps no output file.
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