-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 1.48 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-settings Demo</title>
<link href="https://unpkg.com/@silvermine/videojs-quality-selector/dist/css/quality-selector.css" rel="stylesheet">
<link href="node_modules/video.js/dist/video-js.css" rel="stylesheet">
<link href="dist/videojs-settings.css" rel="stylesheet">
</head>
<body>
<video id="videojs-settings-player" class="video-js vjs-default-skin" controls>
<source src="//vjs.zencdn.net/v/oceans.mp4" type='video/mp4' label="1080p (mp4)">
<source src="//vjs.zencdn.net/v/oceans.webm" type='video/webm' label="1080p (webm)">
</video>
<ul>
<li><a href="/test/debug.html">Run unit tests in browser.</a></li>
</ul>
<script src="node_modules/video.js/dist/video.js"></script>
<script src="https://unpkg.com/@silvermine/videojs-quality-selector/dist/js/silvermine-videojs-quality-selector.min.js"></script>
<script src="dist/videojs-settings.js"></script>
<script>
(function(window, videojs) {
var examplePlayer = window.examplePlayer = videojs('videojs-settings-player');
var settingsOptions = {
version: '1.0',
popout: true,
onPopout: () => {window.open('https://guac.live/embed/datagutt' , '_blank');},
report: true,
onReport: () => {window.open('https://guac.live/report/datagutt' , '_blank');}
};
var settings = window.settings = examplePlayer.settings(settingsOptions);
}(window, window.videojs));
</script>
</body>
</html>