-
Notifications
You must be signed in to change notification settings - Fork 239
Expand file tree
/
Copy pathforms2-audio.html
More file actions
93 lines (83 loc) · 2.49 KB
/
Copy pathforms2-audio.html
File metadata and controls
93 lines (83 loc) · 2.49 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Audio player in "Steno Mode" | 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>
<style>
.form {
padding: 1rem;
background: #fff;
}
.form label, .form input {
display: block;
margin-bottom: 0.5em;
font-size: 1em;
}
.form label {
font-weight: bold;
}
.form textarea {
width: 95%;
max-width: 70em;
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
}
</style>
<script>
$(document).ready(function() {
$('input[type="reset"]').on('click',function() {
$('input[type="text"]').val('');
$('textarea').val('');
});
});
</script>
</head>
<body>
<header>
<div class="title">Able Player Demos</div>
</header>
<nav>
<ul>
<li><a href="index.html">More demos</a></li>
<li><a href="https://ableplayer.github.io/ableplayer">Able Player Docs</a></li>
</ul>
</nav>
<main>
<h1>Audio player in "Steno Mode"</h1>
<div id="container">
<audio id="audio1" preload="auto" data-able-player data-steno-mode>
<source type="audio/mpeg" src="../media/smallf.mp3"/>
<source type="audio/ogg" src="../media/smallf.ogg"/>
</audio>
<h2>Audio Transcription Example</h2>
<p>
Ordinarily, when users are interacting with form fields, their keystrokes should not be handled by the player.
However, in some contexts (e.g., in a transcription application), users may want to control the player
from within a textarea field. To enable this functionality, add <code>data-steno-mode</code> to the
<code><code><audio></code></code> or <code><code><video></code></code> element. Note: Modifier keys for keyboard shortcuts can be configured within <em>Preferences > Keyboard</em>.
</p>
<div class="form">
<div>
<label for="transcriber">Name of transcriber:</label>
<input type="text" id="transcriber">
</div>
<div>
<label for="transcript">Transcript:</label>
<textarea id="transcript" rows="20"></textarea>
</div>
<div>
<input type="reset">
</div>
</div>
</div>
</main>
</body>
</html>