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

<!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>
<script type="module" defer src="index.js" ></script>
</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>
<audio src="jeetee.mp3" id="player" controls ></audio>
<div id="sub">Hello</div>
</body>
</html>