Clears all active DRM sessions. This should not be called unless the audio source has been cleared.
Configures this DrmController for the current track. This will override any player-level configuration.
Returns true if the event host has any listeners.
Returns true if the event host has any listeners for the given type.
Initializes media keys if they have not yet been created and attached, creates a key session if the
selected DrmProtection contains PSSH data.
The first supported key system will be used. Once a key system has been set, it cannot be changed, all future content protections will be expected to contain the supported key system.
Format metadata for the representation. May contain content protections.
Optionalabort: ReadonlyAbortIf aborted, the created session will be closed.
Returns true if Encrypted Media Extensions are supported.
Resolves to true if the given encryption metadata is supported.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
Resets the error state.
Sets content protection data on drm controller for the currently buffering media.
The key session will be created on the 'encrypted' event when the decoder has been initialized.
Format metadata for the representation. May contain content protections.
Optionalabort: ReadonlyAbortIf aborted, the created session from an 'encrypted' event will be closed.
DrmController manages media keys and sessions, provides tracks a way to declare their content protections.