-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
38 lines (36 loc) · 1.29 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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>epic-video-player demo</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="bundle/index.min.js"></script>
<link rel="stylesheet" href="index.css">
<style>
.comparator {
width: 600px;
}
* {
font-family: 'Roboto', sans-serif;
}
</style>
</head>
<body>
<div class="comparator">
<div id="comparator-container"></div>
</div>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
var comparatorConfig = {
leftUrl: 'https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/.mpd',
rightUrl: 'https://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/.mpd',
};
document.getElementById('comparator-container').addEventListener('created', () => console.log('created!'));
document.getElementById('comparator-container').addEventListener('fullscreen_toggle', () => console.log('fullscreen_toggle!'));
window.myComp = new evc.Comparator(comparatorConfig, document.getElementById('comparator-container'));
});
</script>
</body>
</html>