mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
* chore: use Shaka for the browser example * chore: lint * fix(HashtagFeed): resolve type casting issue so tests pass
31 lines
1019 B
HTML
31 lines
1019 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
<link rel="stylesheet" href="/src/assets/style.css" />
|
|
<link rel="stylesheet" href="/src/assets/player.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>YouTube.js Example</title>
|
|
</head>
|
|
<body>
|
|
<form>
|
|
<input type="text" name="id" placeholder="Video ID or URL" />
|
|
<input type="submit" value="Play" />
|
|
</form>
|
|
<div class="loader" id="loader"></div>
|
|
<div id="video-container">
|
|
<div class="shaka-container" id="shaka-container" data-shaka-player-container>
|
|
<video class="videoel" id="videoel" data-shaka-player autoplay></video>
|
|
</div>
|
|
<h2 id="title"></h2>
|
|
<div id="metadata"></div>
|
|
<hr />
|
|
<div id="description"></div>
|
|
</div>
|
|
<footer>
|
|
<p>Powered by <a href="https://github.com/LuanRT/YouTube.js">YouTube.js</a></p>
|
|
</footer>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html> |