forked from ableplayer/ableplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
video7.html
209 lines (169 loc) · 8.23 KB
/
video7.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Able Player Video Demo #7</title>
<link rel="stylesheet" href="demos.css" type="text/css">
<!-- Dependencies -->
<script src="../thirdparty/modernizr.custom.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../thirdparty/js.cookie.js"></script>
<!-- Able Player CSS -->
<link rel="stylesheet" href="../build/ableplayer.min.css" type="text/css"/>
<!-- Able Player JavaScript -->
<script src="../build/ableplayer.js"></script>
<!-- Style for this example only -->
<style>
main {
position: relative;
width: 100%;
margin: 0;
}
#player {
float: left;
width: 480px;
margin: 0;
}
#transcript {
float: left;
height: 500px;
margin: 20px;
width: 500px;
}
#transcript div.able-transcript {
height: 450px;
}
#transcript div.able-desc {
width: 90%;
}
</style>
</head>
<body>
<h1>Able Player Video Demo #7:<br/>Video player with manually coded external transcript</h1>
<p>The <strong>data-transcript-src</strong> attribute is used to identify the <em>id</em> of a container that contains a pre-existing manually coded transcript.
Manually-created transcripts can include better overall structure than automated ones, and can include additional HTML markup beyond the simple markup that is generated automatically by Able Player. This feature therefore gives authors greater control over the content of their transcripts.</p>
<p>For additional demos see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
<main role="main">
<div id="player">
<video id="video1" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player data-transcript-src="transcript" playsinline>
<source type="video/mp4" src="../media/wwa.mp4" data-desc-src="../media/wwa_described.mp4"/>
<source type="video/webm" src="../media/wwa.webm" data-desc-src="../media/wwa_described.webm"/>
<track kind="captions" src="../media/wwa_captions_en.vtt" srclang="en" label="English"/>
<track kind="subtitles" src="../media/wwa_captions_de.vtt" srclang="de" label="Deutsche"/>
<track kind="subtitles" src="../media/wwa_captions_es.vtt" srclang="es" label="Espanol"/>
<track kind="subtitles" src="../media/wwa_captions_ja.vtt" srclang="ja" lang="ja" label="日本語"/>
<track kind="descriptions" src="../media/wwa_description_de.vtt" srclang="de"/>
<track kind="descriptions" src="../media/wwa_description_en.vtt" srclang="en"/>
<track kind="descriptions" src="../media/wwa_description_es.vtt" srclang="es"/>
<track kind="descriptions" src="../media/wwa_description_ja.vtt" srclang="ja"/>
<track kind="chapters" src="../media/wwa_chapters_de.vtt" srclang="de"/>
<track kind="chapters" src="../media/wwa_chapters_en.vtt" srclang="en"/>
<track kind="chapters" src="../media/wwa_chapters_es.vtt" srclang="es"/>
</video>
</div>
<!--
# Use the following template to understand required transcript structure.
# Anything with a class name is critical to the functionality of the transcript.
# You can also supplement this with any additional HTML or CSS.
# Able Player will simply ignore anything it doesn't recognize.
-->
<div id="transcript" class="able-transcript-area">
<!-- the toolbar will be populated with an "Auto Scroll" checkbox -->
<div class="able-window-toolbar"></div>
<div class="able-transcript">
<!-- headings are optional, but encouraged -->
<h2>Interactive Transcript</h2>
<!-- Audio description -->
<div class="able-desc">
<span class="able-hidden">Description: </span>
<span class="able-transcript-seekpoint" data-start="0.005" data-end="6">
A blue circle has pairs of arching pairs inside. Underneath, DO-IT.
</span>
</div>
<div><span class="able-unspoken">[ music ]</span></div>
<!-- More audio description -->
<div class="able-desc">
<span class="able-hidden">Description: </span>
<span class="able-transcript-seekpoint" data-start="6" data-end="12">
Words appear in a white box: World Wide Access.
</span>
</div>
<div class="able-unspoken">[Narrator]</div>
<!-- in-line styles on this div are optional, just used for demo purposes -->
<!-- Note the use of <br/> tags to preserve line breaks in this section -->
<div style="margin:1em 2em">
<span class="able-transcript-seekpoint able-transcript-caption" data-start="9.000" data-end="10.792">
You want these people.<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="10.792" data-end="12.259">
They order your products<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="12.259" data-end="13.759">
sign up for your services,<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="13.759" data-end="15.000">
enroll in your classes,<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="15.000" data-end="16.627">
read your opinions,<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="16.627" data-end="18.561">
and watch your videos.<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="18.561" data-end="20.165">
You'll never see them, <br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="20.165" data-end="22.165">
but they know you—<br/>
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="22.165" data-end="24.165">
through your website.
</span>
</div>
<p style="font-size:1.2em;font-weight:bold;font-style:italic">
<span class="able-transcript-seekpoint able-transcript-caption" data-start="24.165" data-end="25.891">
Or maybe not.
</span>
</p>
<!-- In contrast to the above block, the following block features captions spliced
together to form a paragraph. -->
<p>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="25.891" data-end="30.396">
Your website's visitors aren't a faceless mass of identical mouse-clickers,
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="30.396" data-end="32.363">
but a vibrant community of individuals
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="32.363" data-end="35.297">
with varying tastes, styles, and abilities.
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="35.297" data-end="36.9">
This includes people with disabilities.
</span>
</p>
<div class="able-desc">
<span class="able-hidden">Description: </span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="37.1" data-end="47">
Terrill Thompson, Technology Accessibility Specialist
</span>
</div>
<p>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="39.132" data-end="41">
<span class="able-unspoken">[Terrill]</span>
It's important for web designers and developers
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="41" data-end="45.5">
to realize that what they see currently on their computer,
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="45.5" data-end="49.264">
at their resolution, with their browser and their operating system
</span>
<span class="able-transcript-seekpoint able-transcript-caption" data-start="49.264" data-end="52">
is not going to be necessarily the same thing that everybody else sees.
</span>
</p>
</div><!-- end .able-transcript -->
</div><!-- end .able-transcript-area -->
</main>
</body>
</html>