-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathfaimaison.html
55 lines (48 loc) · 1.55 KB
/
faimaison.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
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>FAImaison - CloudFrancois</title>
<meta name="description" content="">
<style>
/* Responsive video */
video {
max-width: 100%;
height: auto;
}
/* faimaison style */
body {
background: #37455b;
color: #cedbf0;
}
h1, a {
color: #b4d931;
}
video {
border: 1px solid #485a74;
}
</style>
</head>
<body>
<h1>FAImaison</h1>
<video id="video"controls loop autoplay width="640" data-playlist="http://live.cloudfrancois.fr/playlist/faimaison"></video>
<p>
<button id="video-next-source">Next source</button>
<button id="video-randomize-source">Random source</button>
</p>
<p>
<strong>Playlist :</strong> <a href="http://live.cloudfrancois.fr/playlist/faimaison">http://live.cloudfrancois.fr/playlist/faimaison</a></li>
</p>
<script src="m3uStreamPlayer.js"></script>
<script>m3uStreamPlayer.init({selector: '#video', debug: true});</script>
<script>
/**
* Buttons
*/
var buttonNextSource = document.querySelector('#video-next-source');
var buttonRandomizeSource = document.querySelector('#video-randomize-source');
buttonNextSource.addEventListener('click', function(){ m3uStreamPlayer.nextSource(document.querySelector('#video')); })
buttonRandomizeSource.addEventListener('click', function(){ v.randomizeSource(document.querySelector('#video')); })
</script>
</body>
</html>