The MediaKeySession interface of the EncryptedMediaExtensions represents a context for message exchange with a content decryption (CDM).
The MediaKeySession interface of the EncryptedMediaExtensions represents a context for message exchange with a content decryption (CDM).
(close this & args)
Method.
[Experimental]
The MediaKeySession.close() method notifies that the current
session is no longer needed, and that the content decryption
should release any resources associated with this object and
it. Then, it returns a js.Promise
.
mediaKeySession.close().then(function() { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close
Method. [Experimental] The MediaKeySession.close() method notifies that the current session is no longer needed, and that the content decryption should release any resources associated with this object and it. Then, it returns a `js.Promise`. `mediaKeySession.close().then(function() { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close`
(closed this)
Property.
[Read Only] [Experimental]
The MediaKeySession.closed read-only property returns a js.Promise
when a web.audio.MediaKeySession
closes. This promise can only
fulfilled and is never rejected. Closing a session means that
and keys associated with it are no longer valid for decrypting
data.
var promise = mediaKeySessionObj.closed;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed
Property. [Read Only] [Experimental] The MediaKeySession.closed read-only property returns a `js.Promise` when a `web.audio.MediaKeySession` closes. This promise can only fulfilled and is never rejected. Closing a session means that and keys associated with it are no longer valid for decrypting data. `var promise = mediaKeySessionObj.closed;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed`
(expiration this)
Property.
[Read Only] [Experimental]
The MediaKeySession.expiration read-only property returns the after which the keys in the current session can no longer be to decrypt media data, or NaN if no such time exists. This value determined by the CDM and measured in milliseconds since January 1970, UTC. This value may change during a session lifetime, such when an action triggers the start of a window.
var expirationTime = mediaKeySessionObj.expiration;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration
Property. [Read Only] [Experimental] The MediaKeySession.expiration read-only property returns the after which the keys in the current session can no longer be to decrypt media data, or NaN if no such time exists. This value determined by the CDM and measured in milliseconds since January 1970, UTC. This value may change during a session lifetime, such when an action triggers the start of a window. `var expirationTime = mediaKeySessionObj.expiration;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration`
(generate-request this & args)
Method.
[Experimental]
The MediaKeySession.generateRequest() method returns a js.Promise
generating a media request based on initialization data.
mediaKeySession.generateRequest().then(function) { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest
Method. [Experimental] The MediaKeySession.generateRequest() method returns a `js.Promise` generating a media request based on initialization data. `mediaKeySession.generateRequest().then(function) { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest`
(key-statuses this)
Property.
[Read Only] [Experimental]
The MediaKeySession.keyStatuses read-only property returns a
to a read-only web.media.MediaKeyStatusMap
of the current session's
and their statuses.
var mediaKeyStatusMapObj = mediaKeySessionObj.keyStatuses;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses
Property. [Read Only] [Experimental] The MediaKeySession.keyStatuses read-only property returns a to a read-only `web.media.MediaKeyStatusMap` of the current session's and their statuses. `var mediaKeyStatusMapObj = mediaKeySessionObj.keyStatuses;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses`
(load this session-id)
Method.
[Experimental]
The MediaKeySession.load() method returns a js.Promise
that
to a boolean value after loading data for a specified session
mediaKeySession.load(sessionId).then(function(booleanValue) { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load
Method. [Experimental] The MediaKeySession.load() method returns a `js.Promise` that to a boolean value after loading data for a specified session `mediaKeySession.load(sessionId).then(function(booleanValue) { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load`
(onkeystatuseschange this)
Property.
[Experimental]
The onkeystatuseschange property of the web.audio.MediaKeySession
an event handler, fired whenever a keystatuschange event ocurrs,
there has been a change in the keys or their statuses within
session.
MediaKeySession.onkeystatuseschange = function(keystatuschange) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange
Property. [Experimental] The onkeystatuseschange property of the `web.audio.MediaKeySession` an event handler, fired whenever a keystatuschange event ocurrs, there has been a change in the keys or their statuses within session. `MediaKeySession.onkeystatuseschange = function(keystatuschange) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange`
(onmessage this)
Property.
[Experimental]
The onmessage property of the web.audio.MediaKeySession
is
event handler, fired whenever a web.media.MediaKeyMessageEvent
denoting a message is generated by the content decryption module.
MediaKeySession.onmessage = function(MediaKeyMessageEvent) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage
Property. [Experimental] The onmessage property of the `web.audio.MediaKeySession` is event handler, fired whenever a `web.media.MediaKeyMessageEvent` denoting a message is generated by the content decryption module. `MediaKeySession.onmessage = function(MediaKeyMessageEvent) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage`
(remove this & args)
Method.
[Experimental]
The MediaKeySession.remove() method returns a js.Promise
after
any session data associated with the current object.
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove
Method. [Experimental] The MediaKeySession.remove() method returns a `js.Promise` after any session data associated with the current object. See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove`
(session-id this)
Property.
[Read Only] [Experimental]
The MediaKeySession.sessionId read-only property contains a unique generated by the CDM for the current media object and its associated or licenses.
var sessionId = mediaKeySessionObj.sessionId;
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId
Property. [Read Only] [Experimental] The MediaKeySession.sessionId read-only property contains a unique generated by the CDM for the current media object and its associated or licenses. `var sessionId = mediaKeySessionObj.sessionId;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId`
(set-onkeystatuseschange! this val)
Property.
[Experimental]
The onkeystatuseschange property of the web.audio.MediaKeySession
an event handler, fired whenever a keystatuschange event ocurrs,
there has been a change in the keys or their statuses within
session.
MediaKeySession.onkeystatuseschange = function(keystatuschange) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange
Property. [Experimental] The onkeystatuseschange property of the `web.audio.MediaKeySession` an event handler, fired whenever a keystatuschange event ocurrs, there has been a change in the keys or their statuses within session. `MediaKeySession.onkeystatuseschange = function(keystatuschange) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange`
(set-onmessage! this val)
Property.
[Experimental]
The onmessage property of the web.audio.MediaKeySession
is
event handler, fired whenever a web.media.MediaKeyMessageEvent
denoting a message is generated by the content decryption module.
MediaKeySession.onmessage = function(MediaKeyMessageEvent) { ... }
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage
Property. [Experimental] The onmessage property of the `web.audio.MediaKeySession` is event handler, fired whenever a `web.media.MediaKeyMessageEvent` denoting a message is generated by the content decryption module. `MediaKeySession.onmessage = function(MediaKeyMessageEvent) { ... }` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage`
(update this response)
Method.
[Experimental]
The MediaKeySession.update() method loads messages and licenses
the CDM, and then returns a js.Promise
.
mediaKeySession.update(response).then(function() { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update
Method. [Experimental] The MediaKeySession.update() method loads messages and licenses the CDM, and then returns a `js.Promise` . `mediaKeySession.update(response).then(function() { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close