-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdemos.html
323 lines (272 loc) · 17 KB
/
demos.html
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Demos for Acorn Media Player, Accessible and customizable HTML5 media player</title>
<link href="website/css/amp-website.css" rel="stylesheet" type="text/css" />
<!-- Acorn Media Player specific -->
<link href="acornmediaplayer/acornmediaplayer.base.css" rel="stylesheet" type="text/css">
<!-- Themes -->
<link href="acornmediaplayer/themes/access/acorn.access.css" rel="stylesheet" type="text/css">
<link href="acornmediaplayer/themes/darkglass/acorn.darkglass.css" rel="stylesheet" type="text/css">
<link href="acornmediaplayer/themes/barebones/acorn.barebones.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>
Acorn Media Player
<p>jQuery HTML5 media player</p>
</h1>
<section>
<h2>Demos</h2>
<h3>Defaults</h3>
<figure>
<video id="demo1" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo1-audio" aria-describedby="demo1-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo1-audiodescript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<p>This uses the default options, with the default 'access' theme. </p>
<p>Just include the theme CSS and call the plugin. </p>
<pre><code><link href="/path/to/themes/access/acorn.access.css" rel="stylesheet" type="text/css"></code></pre>
<pre><code>jQuery('video').acornMediaPlayer();</code></pre>
</section>
<section>
<h3><code>accesslight </code> Child Theme</h3>
<figure>
<video id="demo2" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo2-audio" aria-describedby="demo2-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo2-audio-descript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<p>Being a child theme of <code>access</code>, the styles for <code>accesslight</code> are included in the main theme's CSS. </p>
<pre><code><link href="/path/to/themes/access/acorn.access.css" rel="stylesheet" type="text/css"></code></pre>
<p>Now call the plugin with the <code>themes</code> option. </p>
<pre><code>jQuery('video').acornMediaPlayer({
themes: 'access accesslight'
});</code></pre>
</section>
<section>
<h3><code>Darkglass</code> theme and vertical volume slider</h3>
<figure>
<video id="demo3" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo3-audio" aria-describedby="demo3-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo3-audio-descript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<p><code>darkglass</code> only works properly with vertical volume sliders. </p>
<pre><code><link href="/path/to/themes/darkglass/acorn.darkglass.css" rel="stylesheet" type="text/css"></code></pre>
<pre><code>jQuery('video').acornMediaPlayer({
theme: 'darkglass',
volumeSlider: 'vertical'
});</code></pre>
</section>
<section>
<h3><code>darkglasssmall</code> Child Theme</h3>
<figure>
<video id="demo4" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo4-audio" aria-describedby="demo4-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo4-audio-descript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<pre><code><link href="/path/to/themes/darkglass/acorn.darkglass.css" rel="stylesheet" type="text/css"></code></pre>
<pre><code>jQuery('video').acornMediaPlayer({
theme: 'darkglass darkglasssmall',
volumeSlider: 'vertical'
});</code></pre>
</section>
<section>
<h3><code>barebones</code> Theme</h3>
<figure>
<video id="demo5" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo5-audio" aria-describedby="demo5-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo5-audio-descript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<pre><code><link href="/path/to/themes/barebones/acorn.barebones.css" rel="stylesheet" type="text/css"></code></pre>
<pre><code>jQuery('video').acornMediaPlayer({
theme: 'barebones'
});</code></pre>
</section>
<section>
<h3><code>barebones</code> Theme with native sliders</h3>
<figure>
<video id="demo6" controls="controls" width="826" height="360" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="https://user-images.githubusercontent.com/325171/200515741-eb779885-d074-4ba2-9782-32a2add7dd79.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
<track src="subs/TOS-japanese.srt" kind="subtitles" srclang="jp" label="Japanese" />
<track src="subs/TOS-english.srt" kind="subtitles" srclang="en" label="English" />
<track src="subs/TOS-turkish.srt" kind="subtitles" srclang="tr" label="Turkish" />
<track src="subs/TOS-ukrainian.srt" kind="subtitles" srclang="uk" label="Ukrainian" />
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
<figure>
<audio id="demo6-audio" aria-describedby="demo6-audio-descript">
<source type="audio/webm" src="https://user-images.githubusercontent.com/325171/200516063-ca55ea20-6234-4f13-b006-f18ab9416779.webm" />
</audio>
<figcaption id="demo6-audio-descript">
P.T.Burnem's track "Gypsy Heart Rock" from the "Paper Cranes" album.
</figcaption>
</figure>
<pre><code><link href="/path/to/themes/barebones/acorn.barebones.css" rel="stylesheet" type="text/css"></code></pre>
<pre><code>jQuery('video').acornMediaPlayer({
theme: 'barebones',
nativeSliders: true
});</code></pre>
</section>
<section>
<h3>A word about the markup</h3>
<p>If you take a look at the source of these demos, you can see I'm using a Wikipedia-like style of marking-up both <video> and <audio>, using the HTML 5 elements <figure> and <figcaption>. </p>
<pre><code><figure>
<video controls="controls" width="826" height="330" poster="website/images/tos-poster.jpg" preload="metadata" aria-describedby="full-descript">
<source type="video/webm" src="/tears_of_steel_240.webm" />
<track src="subs/TOS-arabic.srt" kind="subtitles" srclang="ar" label="Arabic" />
...
You can download Tears of Steel at <a href="http://mango.blender.org/">mango.blender.org</a>.
</video>
<figcaption id="full-descript">
<p><em>"Tears of Steel"</em> was realized with crowd-funding by users of the open source 3D creation tool <a href="http://www.blender.org">Blender</a>. Target was to improve and test a complete open and free pipeline for visual effects in film - and to make a compelling sci-fi film in Amsterdam, the Netherlands. </p>
<p>(CC) Blender Foundation - <a href="http://www.tearsofsteel.org">http://www.tearsofsteel.org</a></p>
</figcaption>
</figure>
</code></pre>
<p>You can also notice I'm linking the <figure> and <figcaption> using <code>aria-describedby</code>. </p>
<p>Using the <code>aria-describedby</code> attribute makes screen readers and other <abbr title="Assistive technology">AT</abbr> read the media element description <strong>first</strong>, before reaching the controls. </p>
<p>This goes for both the <audio> and <video>, and is done for accessibility and semantic markup. </p>
<p>You don't <strong>have</strong> to use this markup. A simple video or audio element will do. </p>
</section>
<footer>
<p>Acorn Media Player is a project by <a href="http://www.ghinda.net">Ionuț Colceriu</a>. </p>
<p>Tears of Steel is © copyright the Blender Foundation | <a href="http://www.tearsofsteel.org">www.tearsofsteel.org</a>, licensed under a <a href="http://mango.blender.org/sharing/">Creative Commons</a> license. </p>
</footer>
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery-ui-1.10.0.custom.min.js"></script>
<script src="lib/modernizr.custom.js"></script>
<script src="//afarkas.github.io/webshim/js-webshim/minified/polyfiller.js"></script>
<script>
if(window.webshims) {
webshims.polyfill('mediaelement');
}
</script>
<script src="acornmediaplayer/jquery.acornmediaplayer.js"></script>
<!-- Call the plugin -->
<script>
jQuery(function() {
// demo1
jQuery('#demo1, #demo1-audio').acornMediaPlayer();
// demo2
jQuery('#demo2, #demo2-audio').acornMediaPlayer({
theme: 'access accesslight'
});
// demo3
jQuery('#demo3, #demo3-audio').acornMediaPlayer({
theme: 'darkglass',
volumeSlider: 'vertical'
});
// demo4
jQuery('#demo4, #demo4-audio').acornMediaPlayer({
theme: 'darkglass darkglasssmall',
volumeSlider: 'vertical'
});
// demo5
jQuery('#demo5, #demo5-audio').acornMediaPlayer({
theme: 'barebones'
});
// demo6
jQuery('#demo6, #demo6-audio').acornMediaPlayer({
theme: 'barebones',
nativeSliders: true
});
});
</script>
</body>
</html>