-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
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.
hls.js/src/controller/eme-controller.ts
Lines 55 to 60 in 7a089f0
export interface MediaKeySessionContext { keySystem: KeySystems; mediaKeys: MediaKeys; decryptdata: LevelKey; // FIXME: LevelKey has a URI which should be bound to the session, but is dependent one KeyId specifically. Session context should be allowed to adopt multiple level keys. mediaKeysSession: MediaKeySession; keyStatus: MediaKeyStatus; // FIXME: MediaKeySession can manage multiple keys with each with its own status Originally posted by @robwalch in #7414 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Top priorities
Status
No status