-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (41 loc) · 1.26 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
37
38
39
40
41
42
43
<head>
<link href="node_modules/video.js/dist/video-js.min.css" rel="stylesheet">
<!-- Example on customize skin -->
<!--
<style type="text/css">
.vjs-progress-holder {
color: yellow !important;
background: green !important;
}
.vjs-play-progress {
background: red !important;
}
</style>
-->
<script src="node_modules/video.js/dist/video.min.js"></script>
<script src="node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.min.js"></script>
</head>
<body>
<video id="my-player" class="video-js">
<!-- Localhost stream -->
<!-- <source src="http://localhost:8080/hls/hkoscon.m3u8" type="application/x-mpegURL"> -->
<!-- Reverse proxy stream -->
<source src="https://24b5396e.ngrok.io/hls/hkoscon.m3u8" type="application/x-mpegURL">
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
<script>
videojs(
'my-player',
// Video.js options http://docs.videojs.com/tutorial-options.html
{
controls: true,
autoplay: false,
preload: 'auto',
fluid: true
}
);
</script>
</body>