forked from halibegic/hls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·37 lines (35 loc) · 1.28 KB
/
index.html
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
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Video.js + hls.js</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css">
<link href="https://vjs.zencdn.net/5.19.2/video-js.css" rel="stylesheet">
<style type="text/css">
body {
background-color: #f2f2f2;
}
.video-js {
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<div class="mt-3 embed-responsive embed-responsive-16by9">
<video id="video" class="embed-responsive-item video-js vjs-default-skin" width="640" height="360" autoplay controls>
<source src="bbb/playlist.m3u8" type="application/x-mpegURL"/>
</video>
</div>
<a class="mt-3 d-block text-center" href="https://github.com/halibegic/hls" target="blank">GitHub</a>
</div>
<script src="https://vjs.zencdn.net/5.19.2/video.js"></script>
<script src="js/hls.min.js"></script>
<script src="js/vjs-hls.min.js"></script>
<script>
var player = videojs('video');
player.qualityPickerPlugin();
</script>
</body>
</html>