forked from lopezs/ableplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest7d.html
More file actions
56 lines (44 loc) · 1.67 KB
/
test7d.html
File metadata and controls
56 lines (44 loc) · 1.67 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
49
50
51
52
53
54
55
56
<!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>
<!-- CSS for this example -->
<style>
#meta {
clear: both;
width: 480px;
color: #C00;
font-weight: bold;
font-size: 1.2em;
margin: 1em;
display: none;
}
</style>
</head>
<body>
<h1>Able Player Test #7d:<br/>Audio player with Metadata Track</h1>
<p>The meta data is provided in a WebVTT file with kind="metadata".
A <strong>data-meta-div</strong> attribute provides the ID of an external container in which to write the metadata content.
</p>
<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!" data-meta-div="meta">
<source type="audio/ogg" src="../media/paulallen.ogg"/>
<source type="audio/mpeg" src="../media/paulallen.mp3"/>
<track kind="metadata" src="../media/paulallen_meta.vtt"/>
</audio>
<div id="meta" role="alert"></div>
</body>
</html>