-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
23 lines (23 loc) · 731 Bytes
/
Copy pathtest.html
File metadata and controls
23 lines (23 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Lecteur SOCOTV - test</title>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
</head>
<body style="margin:0;background:#000">
<video id="video" controls autoplay style="width:100%;height:100%;background:#000"></video>
<script>
var video = document.getElementById('video');
var videoSrc = 'https://live20.bozztv.com/giatv/giatv-onondive/onondive/playlist.m3u8';
if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = videoSrc;
} else if (Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(videoSrc);
hls.attachMedia(video);
}
requestFullscreen()
</script>
</body>
</html>