-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (23 loc) · 727 Bytes
/
index.html
File metadata and controls
25 lines (23 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HLS Video Player</title>
<link href="https://vjs.zencdn.net/8.16.1/video-js.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
</head>
<body>
<h1>HLS Video Player</h1>
<video id=example-video width=600 height=300 class="video-js vjs-default-skin" controls>
<source
src="http://localhost:5995/video/1735645261563"
type="application/x-mpegURL">
</video>
<script src="https://vjs.zencdn.net/8.16.1/video.min.js" ></script>
<script>
var player = videojs('example-video');
player.play();
</script>
</body>
</html>