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.
26 lines
670 B
HTML
26 lines
670 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="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>
|
|
|
|
<div id="sub">Hello</div>
|
|
<audio src="jeetee.mp3" id="player" controls>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|