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.
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 web.Promise
.
mediaKeySession.close().then(function() { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close
Method. 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 `web.Promise`. `mediaKeySession.close().then(function() { ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close`
(closed this)
Property.
The MediaKeySession.closed read-only property returns a web.Promise
when a media.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. The MediaKeySession.closed read-only property returns a `web.Promise` when a `media.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.
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. 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.
The MediaKeySession.generateRequest() method returns a web.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. The MediaKeySession.generateRequest() method returns a `web.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.
The MediaKeySession.keyStatuses read-only property returns a
to a read-only 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. The MediaKeySession.keyStatuses read-only property returns a to a read-only `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.
The MediaKeySession.load() method returns a web.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. The MediaKeySession.load() method returns a `web.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.
The onkeystatuseschange property of the media.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. The onkeystatuseschange property of the `media.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.
The onmessage property of the media.MediaKeySession
is an event
fired whenever a media.MediaKeyMessageEvent
occurs, denoting
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. The onmessage property of the `media.MediaKeySession` is an event fired whenever a `media.MediaKeyMessageEvent` occurs, denoting 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.
The MediaKeySession.remove() method returns a web.Promise
after
any session data associated with the current object.
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove
Method. The MediaKeySession.remove() method returns a `web.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.
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. 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-closed! this val)
Property.
The MediaKeySession.closed read-only property returns a web.Promise
when a media.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. The MediaKeySession.closed read-only property returns a `web.Promise` when a `media.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`
(set-expiration! this val)
Property.
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. 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`
(set-key-statuses! this val)
Property.
The MediaKeySession.keyStatuses read-only property returns a
to a read-only 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. The MediaKeySession.keyStatuses read-only property returns a to a read-only `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`
(set-onkeystatuseschange! this val)
Property.
The onkeystatuseschange property of the media.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. The onkeystatuseschange property of the `media.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.
The onmessage property of the media.MediaKeySession
is an event
fired whenever a media.MediaKeyMessageEvent
occurs, denoting
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. The onmessage property of the `media.MediaKeySession` is an event fired whenever a `media.MediaKeyMessageEvent` occurs, denoting 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`
(set-session-id! this val)
Property.
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. 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`
(update this response)
Method.
The MediaKeySession.update() method loads messages and licenses
the CDM, and then returns a web.Promise
.
mediaKeySession.update(response).then(function() { ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update
Method. The MediaKeySession.update() method loads messages and licenses the CDM, and then returns a `web.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