-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextTrackCue.cljs
84 lines (63 loc) · 1.6 KB
/
TextTrackCue.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
(ns web.media.TextTrackCue
"TextTrackCue is an abstract class which is used as the basis
the various derived cue types, such as `web.vtt.VTTCue`; you
instead work with those derived types."
(:refer-clojure :exclude []))
(defn track
"Property.
The TextTrack that this cue belongs to, or null if it doesn't
to any."
[this]
(-> this (.-track)))
(defn set-track!
"Property.
The TextTrack that this cue belongs to, or null if it doesn't
to any."
[this val]
(aset this "track" val))
(defn id
"Property.
A DOMString that identifies the cue."
[this]
(-> this (.-id)))
(defn set-id!
"Property.
A DOMString that identifies the cue."
[this val]
(aset this "id" val))
(defn start-time
"Property.
A double that represents the video time that the cue will start
displayed."
[this]
(-> this (.-startTime)))
(defn set-start-time!
"Property.
A double that represents the video time that the cue will start
displayed."
[this val]
(aset this "startTime" val))
(defn end-time
"Property.
A double that represents the video time that the cue will stop
displayed."
[this]
(-> this (.-endTime)))
(defn set-end-time!
"Property.
A double that represents the video time that the cue will stop
displayed."
[this val]
(aset this "endTime" val))
(defn pause-on-exit
"Property.
A boolean for whether the video will pause when this cue stops
displayed."
[this]
(-> this (.-pauseOnExit)))
(defn set-pause-on-exit!
"Property.
A boolean for whether the video will pause when this cue stops
displayed."
[this val]
(aset this "pauseOnExit" val))