refactor(manifests): build the HLS key plan once and read it in every HLS licence pass

This commit is contained in:
imSp4rky
2026-12-02 21:02:06 -07:00
parent d2418414a0
commit 340a4b368f
12 changed files with 537 additions and 288 deletions
+2 -2
View File
@@ -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.