-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (66 loc) · 1.45 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<DOCTYPE! html>
<html>
<head>
<script src="//releases.flowplayer.org/7.0.0/flowplayer.min.js"></script>
<script src="//releases.flowplayer.org/hlsjs/flowplayer.hlsjs.min.js"></script>
</head>
<script language=JavaScript>
window.onload = function () {
flowplayer("#hlsjslive", {
splash: true,
embed: false,
ratio: 9/16,
clip: {
hlsjs: {
// slightly better behaviour for this problem stream
smoothSwitching: false
},
live: true,
sources: [
{ type: "application/x-mpegurl",
src: "http://localhost/live/index.m3u8" }
]
}
});
};
</script>
<style>
body{ background-color:#EEE; }
H1, H2{
color:black;
line-height:40px;
padding:0px;
margin:0px;
}
#hlsjslive{position:absolute; top:50px; left:0px; right:0px; max-height:400px;}
.fp-player{width:100%; height:20px;}
.fp-engine{width:100%;}
.streaming{width:100%;}
.info{margin-top:500px;}
.fp-help, .fp-menu{
opacity:0;
}
.fp-ui{
dislpay:inline-block;
width:100%;
font-size:0px;
padding:10px;
margin:0px;
color:white;
z-index:99999;
}
.fp-ratio{
padding-top:0px !important;
}
.fp-play-rounded-fill{z-index:1; opacity:1;}
svg{position:absolute; margin:auto; top:-50px; height:40px;
padding:5px; display:block; right:10px; opacity:0;}
</style>
<body>
<div class="streaming">
<h2 id="live">Live Stream</h2>
<div id="hlsjslive"></div>
</div>
</body>
</html>
Choose Files