Liking cljdoc? Tell your friends :D

web.video.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.

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

closedcljs

(closed this)

Property.

[Read Only] [Experimental]

The MediaKeySession.closed read-only property returns a js.Promise when a web.video.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.video.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.

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

generate-requestcljs

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

key-statusescljs

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

loadcljs

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

onkeystatuseschangecljs

(onkeystatuseschange this)

Property.

[Experimental]

The onkeystatuseschange property of the web.video.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.video.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.

[Experimental]

The onmessage property of the web.video.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.video.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`
sourceraw docstring

removecljs

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

session-idcljs

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

set-onkeystatuseschange!cljs

(set-onkeystatuseschange! this val)

Property.

[Experimental]

The onkeystatuseschange property of the web.video.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.video.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.

[Experimental]

The onmessage property of the web.video.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.video.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`
sourceraw docstring

updatecljs

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

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

× close