/
MediaKeys.cljs
31 lines (22 loc) · 1.09 KB
/
MediaKeys.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(ns web.audio.MediaKeys
"The MediaKeys interface of EncryptedMediaExtensions API represents
set of keys that an associated `web.media.HTMLMediaElement` can
for decryption of media data during playback."
(:refer-clojure :exclude []))
(defn create-session
"Method.
The MediaKeys.createSession() method returns a new `web.audio.MediaKeySession`
which represents a context for message exchange with a content
module (CDM).
`var mediaKeySessionObject = MediaKeys.createSession([MediaKeySessionType]);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession`"
[this & args]
(apply (-> this .-createSession) (concat [this] args)))
(defn set-server-certificate
"Method.
The MediaKeys.setServerCertificate() method a `js.Promise` to
server certificate to be used to encrypt messages to the license
`MediaKeys.setServerCertificate([MediaKeySessionType]).then(function() { ... });`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate`"
[this & args]
(apply (-> this .-setServerCertificate) (concat [this] args)))