forked from streamroot/videojs-hlsjs-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.html
39 lines (30 loc) · 1.25 KB
/
debug.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
37
38
39
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Video.js hls.js Streamroot Integration</title>
<!-- video.js -->
<link href="./node_modules/video.js/dist/video-js.css" rel="stylesheet">
<script src="./node_modules/video.js/dist/video.js"></script>
<script src="./dist/videojs5-hlsjs-source-handler.js"></script>
</head>
<body>
<video id="example-video" width="600" height="300" class="video-js vjs-default-skin" controls>
<!-- <source src="http://akamai.streamroot.edgesuite.net/vodorigin/tos.mp4/playlist.m3u8" type="application/x-mpegURL"/> -->
<!-- <source src="http://playertest.longtailvideo.com/adaptive/oceans_aes/oceans_aes.m3u8" type="application/x-mpegURL"/> -->
<source src="http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8" type="application/x-mpegURL"/>
<!-- <source src="http://10.211.55.7/vod/hls_sample1_manifest.m3u8" type="application/x-mpegURL"/> -->
</video>
<script>
var options = {
html5: {
hlsjsConfig: {
debug: true
}
}
};
var player = videojs('example-video', options);
player.qualityPickerPlugin();
</script>
</body>
</html>