-
Notifications
You must be signed in to change notification settings - Fork 0
/
BlobEvent.cljs
65 lines (45 loc) · 1.86 KB
/
BlobEvent.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(ns web.audio.BlobEvent
"The BlobEvent interface represents events associated with a `web.files.Blob`.
blobs are typically, but not necessarily, associated with media"
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The BlobEvent() constructor returns a newly created `web.audio.BlobEvent` object with an associated `web.files.Blob`.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent`"
js/BlobEvent)
(defn data
"Property.
The BlobEvent.data read-only property represents a `web.files.Blob`
with the event.
`associatedBlob = BlobEvent.data`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/data`"
[this]
(-> this (.-data)))
(defn set-data!
"Property.
The BlobEvent.data read-only property represents a `web.files.Blob`
with the event.
`associatedBlob = BlobEvent.data`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/data`"
[this val]
(aset this "data" val))
(defn timecode
"Property.
The timecode readonlyinline property of the `web.audio.BlobEvent`
a `web.dom.DOMHighResTimeStamp` indicating the difference between
timestamp of the first chunk in data, and the timestamp of the
chunk in the first BlobEvent produced by this recorder.
`var timecode = BlobEvent.timecode`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/timecode`"
[this]
(-> this (.-timecode)))
(defn set-timecode!
"Property.
The timecode readonlyinline property of the `web.audio.BlobEvent`
a `web.dom.DOMHighResTimeStamp` indicating the difference between
timestamp of the first chunk in data, and the timestamp of the
chunk in the first BlobEvent produced by this recorder.
`var timecode = BlobEvent.timecode`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/timecode`"
[this val]
(aset this "timecode" val))