You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
741 B
HTML

2 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Subtitles player</title>
<link rel="stylesheet" href="style.css">
<script type="module" defer src="functions.js"></script>
2 years ago
<script type="module" defer src="index.js" ></script>
2 years ago
</head>
<body>
<h1 class="title">Test with live server</h1>
<ul>
<li>load audio player</li>
<li>load subtitles file</li>
<li>use the timeupdate callbck of the player to check for sub</li>
<li>if there is caption display the caption</li>
<li>if there is a call back (define syntax) call the callback</li>
</ul>
2 years ago
<audio src="jeetee.mp3" id="player" controls ></audio>
<div id="sub">Hello</div>
2 years ago
2 years ago
</body>
</html>