-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitor.html
executable file
·165 lines (126 loc) · 3.89 KB
/
monitor.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MONITOREO SERVIDORES</title>
<script src="./dist/jquery-1.12.4.min.js"></script>
<script src="./dist/ovenplayer.js"></script>
<script src="./dist/hls.js"></script>
<meta http-equiv="refresh" content="300">
<style type="text/css">
body {
background: rgb(2, 0, 36);
background: radial-gradient(circle, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgb(79, 226, 255) 100%);
font-family: 'Open Sans', sans-serif;
padding-bottom: 0 px;
margin: auto;
}
header {
padding-top: 0px;
padding-bottom: 0px;
color: #fff;
}
nav {
color: #fff;
}
h1 {
text-align: center;
text-shadow: 3px 3px 10px #000010;
font-size: 40px;
padding: 0px;
}
.contenedor {
position: relative;
display: grid;
grid-template-columns: auto auto;
padding: 0px;
width: 100%;
margin: auto auto;
margin-top: 0;
margin-left: 5;
margin-right: 5;
min-width: 240px;
max-width: 1360px;
background: rgb(34, 193, 195);
background: linear-gradient(30deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%);
}
.videos {
border-radius: 5px;
margin: 7px 7px;
max-width: 100%;
max-height: 480px;
border: 8px solid rgba(255, 255, 255, 0.8);
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 5);
}
</style>
</head>
<body>
<header>
<h1>SERVIDORES DE STREAMING MASTV</h1>
</header>
<div class="contenedor">
<div class="videos">
<div id="reproductor1"></div>
</div>
<div class="videos">
<div id="reproductor2"></div>
</div>
<div class="videos">
<div id="reproductor3"></div>
</div>
<div class="videos">
<div id="reproductor4"></div>
</div>
</div>
<script>
OvenPlayer.debug(true);
const src = [
{
file: 'http://video.camaronhosting.com/mastv/mastv/playlist.m3u8',
label: 'Server: HOSTPY | Subida: TIGO',
type: 'hls'
},
{
file: 'http://142.44.241.232:8080/hls/1/stream.m3u8',
label: 'Server: OVH | Edge: HOSTPY',
type: 'hls'
},
{
file: 'http://193.123.100.4:8080/hls/1/stream.m3u8',
label: 'Server: ORACLE | Subida: PERSONAL',
type: 'hls'
},
{
file: 'ws://193.123.99.208:3333/app/stream1',
label: 'RETORNO | Server: ORACLE 2 | Subida: Personal ',
type: 'webrtc'
}
];
function make_player(id, src) {
const player = OvenPlayer.create("reproductor" + id,
{
image: "rw.png",
// title: "MAS TV",
sources: src,
autoStart: true,
mute: true,
expandFullScreenUI: true,
waterMark: {
text: src.label,
font: {
'font-size': '20px',
'color': '#F00',
'font-weight': 'bold'
},
position: 'top-left',
},
});
}
$(document).ready(function () {
for (var i = 1; i < 5; i++) {
make_player(i, src[i - 1]);
}
});
</script>
</body>
</html>