forked from lopezs/ableplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest7c.html
More file actions
48 lines (37 loc) · 1.87 KB
/
test7c.html
File metadata and controls
48 lines (37 loc) · 1.87 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Able Player Test #7c</title>
<link rel="stylesheet" href="tests.css" type="text/css">
<!-- Dependencies -->
<script src="../thirdparty/modernizr.custom.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="../thirdparty/jquery.cookie.js"></script>
<!-- Able Player CSS -->
<link rel="stylesheet" href="../styles/ableplayer.css" type="text/css"/>
<!-- CSS for interactive transcript -->
<link rel="stylesheet" href="../styles/ableplayer-transcript.css" type="text/css"/>
<!-- Able Player JavaScript -->
<script src="../build/ableplayer.js"></script>
</head>
<body>
<h1>Able Player Test #7c:<br/>Audio player with interactive transcript in "Lyrics Mode"</h1>
<p>The transcript (in this case, song lyrics) is provided in
a WebVTT file with kind="captions" and linked using a <track> element, just as with video.
The captions are currently rendered as a transcript only, not as captions.
Note the two additional optional attributes that are relevant for this example:
</p>
<ul>
<li><strong>data-lyrics-mode</strong> - forces a line break between and within captions in the transcript</li>
<li><strong>data-transcript-title</strong> - to override default title, which is "Transcript", or "Lyrics" if the data-lyrics-mode attribute is present</li>
</ul>
<p>For additional tests see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
<!-- use the following markup for each media element -->
<audio id="audio1" class="ump-media" preload="auto" data-able-player data-lyrics-mode data-transcript-title="Sing along!">
<source type="audio/ogg" src="../media/paulallen.ogg"/>
<source type="audio/mpeg" src="../media/paulallen.mp3"/>
<track kind="captions" src="../media/paulallen_en.vtt" srclang="en" label="English"/>
</audio>
</body>
</html>