Repository navigation
Expand file tree
/
Copy pathaudio3.html
More file actions
48 lines (41 loc) · 1.68 KB
/
Copy pathaudio3.html
File metadata and controls
48 lines (41 loc) · 1.68 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">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Audio with non-zero Start Time | Able Player Demos</title>
<link rel="stylesheet" href="demos.css" type="text/css">
<!-- Dependencies -->
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
<!-- Able Player CSS -->
<link rel="stylesheet" href="../build/ableplayer.min.css" type="text/css"/>
<!-- Able Player JavaScript -->
<script src="../build/ableplayer.dist.js"></script>
</head>
<body>
<header>
<div class="title">Able Player Demos</div>
</header>
<div class="body-wrapper">
<nav id="navigation-placeholder">
</nav>
<main>
<h1>Audio with non-zero Start Time</h1>
<p>This player is initialized to start automatically, at 2:20 into the track (just prior to the guitar solo).
This can be used to start the media from search results or an interactive transcript.
To play the media automatically at the target start time, the media element must also include the <code>autoplay</code> attribute.
Even then, some browsers may block this functionality.
</p>
<p>For additional demos see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
<div id="container">
<!-- use the following markup for each media element -->
<audio id="audio1" preload="auto" data-able-player data-start-time="140" autoplay>
<source type="audio/mpeg" src="../media/smallf.mp3"/>
<source type="audio/ogg" src="../media/smallf.ogg"/>
</audio>
</div>
</main>
</div>
<script src="demos.js"></script>
</body>
</html>