-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
64 lines (59 loc) · 2.22 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
61
62
63
64
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="https://cdn.jsdelivr.net/npm/@clappr/core@latest/dist/clappr-core.min.js"></script>
<script type="text/javascript" charset="utf-8" src="hlsjs-playback.js"></script>
<script type="text/javascript" charset="utf-8" src="j/main.js"></script>
<script type="text/javascript" charset="utf-8" src="j/editor/ace.js"></script>
<script type="text/javascript" charset="utf-8" src="j/add-external.js"></script>
<link rel="stylesheet" href="stylesheets/bootstrap.min.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="stylesheets/bootstrap-theme.min.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="stylesheets/style.css" type="text/css" media="screen" charset="utf-8">
<link rel="shortcut icon" type="image/png" href="i/favico.png">
</head>
<body>
<header class="header">
<span>Clappr</span>
<ul>
<li>
<a href="http://clappr.github.io/">docs</a>
</li>
</ul>
</header>
<section class="container">
<div class="main">
<p id='external-js-panel'>
Add external plugins:
<input id="js-link" type="url" placeholder="http://clappr.io/ex-plugin.js" style="width: 200px;">
<button id="btn-link" onclick="addExternal()">+</button>
</p>
<div id="output">
<div id="player-wrapper" class="player"></div>
</div>
</div>
<div class="sidebar">
<div id="editor">var playerElement = document.getElementById("player-wrapper");
var player = new Clappr.Player({
source: 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8',
poster: '../i/poster.jpg',
mute: true,
height: 360,
width: 640,
playback: {
controls: true,
},
plugins: [HlsjsPlayback],
});
player.attachTo(playerElement);
</div>
<button class="run btn btn-primary">Run</button>
<div id="console"> </div>
</div>
<p>
<a href="index.hlsjs-external.html">Load hlsjs-playback.external.js version</a>
</p>
</section>
<footer class="footer"></footer>
<script type="text/javascript" charset="utf-8" src="j/clappr-config.js"></script>
</body>
</html>