/
MediaMetadata.cljs
152 lines (103 loc) · 4.09 KB
/
MediaMetadata.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
(ns web.audio.MediaMetadata
"The MediaMetadata interface of the the Media Session API provides
a web page to provide rich media metadata for display in a platform"
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The MediaMetadata() constructor creates a new `web.audio.MediaMetadata` object.
metadata Optional
\\tThe metadata parameters are as follows:
\\t\\ttitle: The title of the media to be played.
\\t\\tartist: The name of the artist, group, creator, etc. of the media to be played.
\\t\\talbum: The name of the album, or collection, containing the media to be played.
\\t\\tartwork: An array of images associated with the playing media.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata`"
js/MediaMetadata)
(defn title
"Property.
The title property of the `MediaMetaData` interface returns or
the title of the media to be played.
`var title = mediaMetaData.title
mediaMetaData.title = title`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/title`"
[this]
(-> this (.title)))
(defn set-title!
"Property.
The title property of the `MediaMetaData` interface returns or
the title of the media to be played.
`var title = mediaMetaData.title
mediaMetaData.title = title`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/title`"
[this val]
(aset this "title" val))
(defn album
"Property.
The album property of the `MediaMetaData` interface returns or
the name of the album or collection containing the media to be
`var album = mediaMetaData.album
mediaMetaData.album = album`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album`"
[this]
(-> this (.album)))
(defn set-album!
"Property.
The album property of the `MediaMetaData` interface returns or
the name of the album or collection containing the media to be
`var album = mediaMetaData.album
mediaMetaData.album = album`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/album`"
[this val]
(aset this "album" val))
(defn artist
"Property.
The artist property of the `MediaMetaData` interface returns
sets the name of the artist, group, creator, etc., of the media
be played.
`var artist = mediaMetadata.artist
mediaMetadata.artist = artist`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist`"
[this]
(-> this (.artist)))
(defn set-artist!
"Property.
The artist property of the `MediaMetaData` interface returns
sets the name of the artist, group, creator, etc., of the media
be played.
`var artist = mediaMetadata.artist
mediaMetadata.artist = artist`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artist`"
[this val]
(aset this "artist" val))
(defn artwork
"Property.
The artwork property of the `MediaMetaData` interface returns
sets an array of images associated with playing media.
`var artwork[] = mediaMetadata.artwork
mediaMetadata.artwork = artwork[]`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork`"
[this]
(-> this (.artwork)))
(defn set-artwork!
"Property.
The artwork property of the `MediaMetaData` interface returns
sets an array of images associated with playing media.
`var artwork[] = mediaMetadata.artwork
mediaMetadata.artwork = artwork[]`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/artwork`"
[this val]
(aset this "artwork" val))
(defn media-metadata
"Property.
The MediaMetadata() constructor creates a new `web.audio.MediaMetadata`
`var mediaMetadata = new MediaMetadata([metadata])`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata`"
[this]
(-> this (.MediaMetadata)))
(defn set-media-metadata!
"Property.
The MediaMetadata() constructor creates a new `web.audio.MediaMetadata`
`var mediaMetadata = new MediaMetadata([metadata])`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/MediaMetadata/MediaMetadata`"
[this val]
(aset this "MediaMetadata" val))