Upload player.html
Browse files- player.html +31 -0
player.html
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Audio Player with Subtitles</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
max-width: 800px;
|
9 |
+
margin: 20px auto;
|
10 |
+
padding: 0 20px;
|
11 |
+
}
|
12 |
+
.player-container {
|
13 |
+
width: 100%;
|
14 |
+
margin: 20px 0;
|
15 |
+
}
|
16 |
+
audio {
|
17 |
+
width: 100%;
|
18 |
+
}
|
19 |
+
</style>
|
20 |
+
</head>
|
21 |
+
<body>
|
22 |
+
<div class="player-container">
|
23 |
+
<h2>Audio Player with Subtitles</h2>
|
24 |
+
<audio controls>
|
25 |
+
<source src="{{ audio_path }}" type="audio/wav">
|
26 |
+
<track label="English" kind="subtitles" srclang="en" src="{{ vtt_path }}" default>
|
27 |
+
Your browser does not support the audio element.
|
28 |
+
</audio>
|
29 |
+
</div>
|
30 |
+
</body>
|
31 |
+
</html>
|