forked from streamroot/clappr-p2phls-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
35 lines (34 loc) · 1.23 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="http://cdn.clappr.io/latest/clappr.min.js"></script>
<script src="http://cdn.clappr.io/bemtv/latest/p2phlsstats.min.js"></script>
<script src="p2phls.js"></script>
<title>Test Page</title>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
var playerElement = document.getElementById("player-wrapper");
player = new Clappr.Player({
source: 'http://cdn.bem.tv/stream/soccer5/playlist.m3u8',
plugins: {playback: [P2PHLS], container: [P2PHLSStats]},
watermark: "http://bem.tv/assets/watermark3.png",
poster: 'http://dels-school.com/wp-content/uploads/2011/02/fergal-smith-2-640x360.jpg',
bemtv: {
logging: true
}
});
player.attachTo(playerElement);
player.core.containers[0].getPlugin('p2phlsstats').show();
}
</script>
</head>
<body>
<div align=center style="">
<img src="http://bem.tv/static/bemtv_small_logo.png">
<div id="player-wrapper"></div>
</div>
</body>
</html>