-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
38 lines (36 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div id="my-video" class="iband-player">
<video></video>
<div class="player-controls">
<span class="player-time"></span>
<div class="player-seek">
<div class="seek-bar"></div>
<div class="seek-buffer"></div>
</div>
<span class="player-duration"></span>
<div class="player-qualities">
<button class="qualities-toggle" type="button">Qualities</button>
<ul class="qualities-menu"></ul>
</div>
<button class="player-fullscreen" type="button">Fullscreen</button>
<button class="player-play" type="button"></button>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.min.js"></script>
<script src="main.js"></script>
<script>
var sdk = new IBandSDK('TOKEN-STRING');
var stream = sdk.createStream('STREAM-ID');
var player = createMyPlayer('my-video');
player.setStream(stream);
</script>
</body>
</html>