Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for MediaEncryptedEvent.
Developer library 6
Encrypted Media Extensions API
hich is subject to a digital restrictions management scheme. Access to this API is provided through Navigator.requestMediaKeySystemAccess(). ## Interfaces - MediaEncryptedEvent - : Represents a specific encrypted event thrown when a HTMLMediaElement encounters some initialization data. - MediaKeyMessageEvent - : Contains the content and related data when the content decryption module (CDM) generates a message
MediaEncryptedEvent
Encrypted Media Extensions The **`MediaEncryptedEvent`** interface of the [Encrypted Media Extensions API](/docs/Web/API/Encrypted_Media_Extensions_API) contains the information associated with an encrypted event sent to a HTMLMediaElement when some initialization data is encountered in the media. ## Constructor - MediaEncryptedEvent() - : Creates a new instance of a `MediaEncryptedEvent` object. ## Instance
MediaEncryptedEvent: MediaEncryptedEvent() constructor
Encrypted Media Extensions The **`MediaEncryptedEvent`** constructor creates a new MediaEncryptedEvent object. > [!NOTE] > In normal cases, you don't need to call this constructor in your code as such events are usually generated by the browser when needed. ## Syntax ```js-nolint new MediaEncryptedEvent(type) new MediaEncryptedEvent(type, options) ``` ### Parameters - `type` - : A string with the name of the
MediaEncryptedEvent: initDataType property
Encrypted Media Extensions The read-only **`initDataType`** property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event. ## Value A string. ## Specifications ## Browser compatibility
MediaEncryptedEvent: initData property
Encrypted Media Extensions The read-only **`initData`** property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any. ## Value An ArrayBuffer with the initialization data, or `null` if there are none. ## Specifications ## Browser compatibility
HTMLMediaElement: encrypted event
operty](/docs/Web/API/Document_Object_Model/Events#using_onevent_properties) of the interface: ```js-nolint onencrypted = (event) => { } ``` ## Event type A MediaEncryptedEvent. Inherits from Event. MediaEncryptedEvent ## Specifications ## Browser compatibility ## See also - HTMLAudioElement - HTMLVideoElement - audio - video - MediaEncryptedEvent