-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (50 loc) · 1.87 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Navigation using WebVTT</title>
<link href="css/navigation.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div role="application">
<div id="videoBox" style="float:left; width:58%;">
<h4>HTML5 video accessibility and the WebVTT file format</h4>
<video poster="videos/webvtt_talk.png" style="width:100%" preload="metadata">
<source src="videos/webvtt_talk.webm">
<source src="videos/webvtt_talk.mp4">
<track id="nav" src="videos/webvtt_talk_navigation.vtt" kind="chapters" srclang="en"></track>
<track id="cc" src="videos/webvtt_talk_captions.vtt" kind="captions" label="captions" srclang="en" default></track>
</video>
<div id="controls">
<div id="button"><input id="play" type="image" src="images/0.gif" alt="Play video"></div>
<div id="positionview">
<div id="transportbar">
<div id="position"></div>
</div>
<ul id="segments" title="chapter navigation" aria-describedby="keys"></ul>
</div>
<div id="time">
<span id="curTime">00:00</span>/<span id="duration">00:00</span>
</div>
</div>
<div style="display: block; clear: both;"></div>
<ul id="keys">
<li><span>space</span> = play / pause toggle</li>
<li><span>enter</span> = navigate to chapter</li>
<li><span>tab</span> = navigate chapters</li>
<li><span>ctl-alt-downarrow</span> = navigate text elements</li>
</ul>
</div>
<div id="transcriptBox" style="width:40%; float:right;">
<h4>Navigation to specific time points.</h4>
<p style="font-size:small;">
Click on link to navigate to video fragment. Press space to toggle video play/pause.
</p>
<div id="navigation"
style="padding:5px; background-color:#FAF9F8; border:2px black solid;">
<ul id="chapters">
</ul>
</div>
</div>
<script type="text/javascript" src="js/navigation.js"></script>
</body>
</html>