mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-02 05:55:08 +00:00
feat(hls): license every content key of a FairPlay bridge playlist that rotates its key
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user