mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 22:45:09 +00:00
refactor(manifests): build the HLS key plan once and read it in every HLS licence pass
This commit is contained in:
@@ -593,8 +593,8 @@ 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:
|
||||
|
||||
1. Read the key ID from the init segment of the track. `HLS.get_track_kid_from_init` returns it. It reads
|
||||
the first init segment of the playlist, unless you give it the init segment of the encrypted segments.
|
||||
1. Read the key ID from the init segment of the encrypted segments. `HLS.get_track_kid_from_init` returns it
|
||||
for the track, a reader of init segments (`HLS.init_reader(playlist, session)`) and that init segment.
|
||||
2. Put a DRM object that names the key ID on the track: `drm_stub` from `unshackle.core.drm.cenc`
|
||||
with `"playready"` or `"widevine"` and the key ID. When only one of the two systems issues the
|
||||
content key, also set `track.drm_preference` to it.
|
||||
|
||||
Reference in New Issue
Block a user