hls.js
hls.js copied to clipboard
Multi-key handling
hls.js handles multiple keys by creating a new key-session per key-id. Let's see if we can reduce license requests when a session provides multiple key-statuses.
Uncovered while working on #7414:
Commented on flaws in
MediaKeySessionContextthat limit handling of key sessions to a single key ID. Grouping of sessions by KEY URI and handling multiple keys (level key objects and key statuses) will be addressed in a future release. https://github.com/video-dev/hls.js/blob/7a089f084903bc11803770028a336e51381dd501/src/controller/eme-controller.ts#L55-L60Originally posted by @robwalch in https://github.com/video-dev/hls.js/issues/7414#issuecomment-3211437085