-
Notifications
You must be signed in to change notification settings - Fork 0
/
max.html
166 lines (142 loc) · 6.39 KB
/
max.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
166
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Hazrat Ali" content="A PHP , VUE application">
<link rel="icon" href="/app/assets/img/favicon.png">
<title>Player Electron</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="app/assets/css/style5.css">
<!-- JQuery -->
<script src="./app/assets/js/jquery.js"></script>
<!-- Vue -->
<script src="https://unpkg.com/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<style>
.channelBar {
position: absolute;
width: 98%;
opacity: 0.7;
margin: 0;
z-index: 100;
height: 120px;
}
.channelBar button {
border-radius: 0;
padding: 2rem 2rem;
}
#buttonsRow {
display: none;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="channelBar" onmouseover="document.getElementById('buttonsRow').style.display='-webkit-box'" onmouseleave="document.getElementById('buttonsRow').style.display='none'">
<div class="row" id="buttonsRow">
<div class="col-sm"><button type="button" id="tv92" class="btn btn-success btn-block"> TV 92</button></div>
<div class="col-sm"><button type="button" id="geotaiz" class="btn btn-info btn-block" data-target="http://stream.jeem.tv/geo/geotezz/playlist.m3u8"> Geo Taiz</button></div>
<div class="col-sm"><button type="button" id="bigbunny" class="btn btn-warning btn-block" data-target="https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8"> Big Bunny</button></div>
<div class="col-sm"><button type="button" id="eye95" class="btn btn-danger btn-block" data-target="http://cdn20.liveonlineservices.com/hls/eye95tv.m3u8"> Eye 95</button></div>
<div class="col-sm"><button type="button" id="expressnews" class="btn btn-info btn-block" data-target="http://expressdigital.flashmediacast.com:1935/expressdigital/livestream/playlist.m3u8"> Express News</button></div>
<div class="col-sm"><button type="button" id="fourthRight" class="btn btn-info btn-block"> Fourth Right</button></div>
<div class="col-sm"><button type="button" id="maxVideo" class="btn btn-info btn-block"> Max Video</button></div>
</div>
</div>
</div>
<div class="container-fluid" id="container">
<div id="videoRow">
<video id="video" autoplay style="width: 100%" controls></video>
</div>
</div>
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$(this).toggleClass('active');
});
function loadVideo(filePath) {
var video = document.getElementById('video');
if(Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(filePath);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play();
});
}
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
video.addEventListener('loadedmetadata',function() {
video.play();
});
}
}
$('#tv92').on('click', function (e) {
loadVideo('http://92news.vdn.dstreamone.net/92newshd/92hd/playlist.m3u8');
});
$('#bigbunny').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#eye95').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#expressnews').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#geotaiz').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#fourthLeft').on('click', function (e) {
window.resizeTo(screen.width/2, screen.height/2);
window.moveTo(0, 0);
});
$('#fourthRight').on('click', function (e) {
// window.resizeTo(screen.width/2, screen.height/2);
window.moveBy(50 , 10);
});
$('#maxVideo').on('click', function (e) {
$('#container').css("width", "100%");
$('#container').css("padding", "0");
$('#videoRow').css("padding", "0");
$('#container').css("margin", "0");
$('#videoRow').css("margin", "0");
var vid = $('#video');
vid.css("width", "100%");
vid.css("height", "90%");
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
var video = document.getElementById('video');
if(Hls.isSupported()) {
var hls = new Hls();
hls.loadSource('http://stream.jeem.tv/geo/geotezz/playlist.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play();
});
}
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
video.addEventListener('loadedmetadata',function() {
video.play();
});
}
</script>
</body>
</html>