-
Notifications
You must be signed in to change notification settings - Fork 5
/
theoplayer.html
77 lines (69 loc) · 2.42 KB
/
theoplayer.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
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>THEOplayer DNA Wrapper</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto"
rel="stylesheet"
/>
<style>
body {
font-family: "Roboto", sans-serif;
}
</style>
<link
rel="stylesheet"
href="//samples.streamroot.io/dna/web/assets/demo-pages.css"
/>
<!-- Makes the header -->
<script src="//samples.streamroot.io/dna/web/assets/header.js"></script>
<!-- THEOplayer build and UI -->
<script src="//cdn.myth.theoplayer.com/c195a0cd-3811-40c6-80d7-384f09506239/THEOplayer.js"></script>
<link
rel="stylesheet"
type="text/css"
href="//cdn.myth.theoplayer.com/c195a0cd-3811-40c6-80d7-384f09506239/ui.css"
/>
<!-- Streamroot wrapper -->
<script src="//cdn.streamroot.io/theoplayer-dna-wrapper/1/stable/theoplayer-dna-wrapper.js"></script>
<!-- Graphs -->
<script src="//tools.streamroot.io/usage-graphs/stable/graphs.js"></script>
</head>
<body>
<header></header>
<center>
<div
class="theoplayer-container video-js theoplayer-skin theo-seekbar-above-controls"
></div>
<div id="streamroot-graphs"></div>
</center>
<script>
var dnaConfig = {};
var element = document.querySelector(".theoplayer-container");
var player = new THEOplayer.Player(element, {
libraryLocation: "https://cdn.myth.theoplayer.com/c195a0cd-3811-40c6-80d7-384f09506239",
ui: {
width: "512px",
height: "288px",
},
license: "sZP7IYe6T6fZIKxlTQP136zzIKCLFSxgTu0-CSggImzzTSeL3Lfi0uaZIlf6FOPlUY3zWokgbgjNIOf9fK4l0KxeCL31FDat0Da-3uBk3mk6IuI6FSbc3LfiCL36IQ4606fVfK4_bQgZCYxNWoryIQXzImf90SCZ0lhz0SCi0u5i0Oi6Io4pIYP1UQgqWgjeCYxgflEc3l5r0lfc3lBt0lerFOPeWok1dDrLYtA1Ioh6TgV6UQ1gWtAVCYggb6rlWoz6FOPVWo31WQ1qbta6FOPLUwPgCDkZWojzFKgqf6i6v6PUFOPeWok1dDrLYt3qUYPlImf9DZPzdQ4qbQc1sD4ZFK3qWmfVfKcqCoXVdQjLUOfVfG3zbK41WYPqWtapdD26FOfJfgzVfG3edt06TgV6dwx-Wuh6Ymi6bo4pIXjNWYAZIY3LdDjpflNzbG4gya",
});
var wrapper = new TheoPlayerDnaWrapper(
player,
"demoswebsiteandpartners",
dnaConfig
);
player.muted = true;
player.autoplay = true;
player.source = {
sources: [
{
src: "https://demo-vod.streamroot.io/index.m3u8",
type: "application/x-mpegURL",
},
],
};
</script>
</body>
</html>