Liking cljdoc? Tell your friends :D

media.MediaKeySession

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).
raw docstring

closecljs

(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`
sourceraw docstring

closedcljs

(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`
sourceraw docstring

expirationcljs

(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`
sourceraw docstring

generate-requestcljs

(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`
sourceraw docstring

key-statusescljs

(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`
sourceraw docstring

loadcljs

(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`
sourceraw docstring

onkeystatuseschangecljs

(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`
sourceraw docstring

onmessagecljs

(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`
sourceraw docstring

removecljs

(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`
sourceraw docstring

session-idcljs

(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`
sourceraw docstring

set-closed!cljs

(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`
sourceraw docstring

set-expiration!cljs

(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`
sourceraw docstring

set-key-statuses!cljs

(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`
sourceraw docstring

set-onkeystatuseschange!cljs

(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`
sourceraw docstring

set-onmessage!cljs

(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`
sourceraw docstring

set-session-id!cljs

(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`
sourceraw docstring

updatecljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close