-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
60 lines (52 loc) · 2.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Clappr player with hls.js engine and P2P demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="p2p-media-loader-core.js"></script>
<script src="p2p-media-loader-hlsjs.js"></script> -->
<script type="text/javascript" src="clappr.plainhtml5.min.js"></script>
<script type="text/javascript" src="clappr-website.min.js"></script>
<script type="text/javascript" src="ScrollMagic.min.js"></script>
<script type="text/javascript" src="jquery-1.12.0.min.js.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr@latest"></script>
<style>
.play-wrapper {
display: none !important;
}
</style>
</head>
<body class="clappr-ws">
<div id="1" class="clappr-ws__section clappr-ws__section--presentation">
<div id="player" class="clappr-ws__player clappr-ws__presentation-video">
<script>
if (p2pml.hlsjs.Engine.isSupported()) {
var engine = new p2pml.hlsjs.Engine();
var player = new Clappr.Player({
source: "https://wowza.peer5.com/live/smil:bbb_abr.smil/playlist.m3u8",
playback: {
hlsjsConfig: {
liveSyncDurationCount: 7, // To have at least 7 segments in queue
loader: engine.createLoaderClass()
}
},
maxBufferLength: 30,
parentId: "#player",
width: "100%",
height: "100%",
autoPlay: true,
mute: false
});
p2pml.hlsjs.initClapprPlayer(player);
setTimeout(function() {
player.play();
}, 10000);
} else {
document.write("Not supported :(");
}
</script>
</div>
</div>
</body>
</html>