-
Notifications
You must be signed in to change notification settings - Fork 5
/
akamai.html
69 lines (59 loc) · 2.08 KB
/
akamai.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Akamai Adaptive Media Player DNA Plugin</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>
<!-- Builds -->
<script src="//samples.streamroot.io/dna/web/assets/akamai/amp/core/amp.min.js"></script>
<!-- Lumen SDK -->
<script src="//cdn.streamroot.io/akamaimp-hls-dna-plugin/1/stable/akamaimp-hls-dna-plugin.js"></script>
<!-- Graphs -->
<script src="//tools.streamroot.io/usage-graphs/stable/graphs.js"></script>
</head>
<body>
<header></header>
<center>
<div>
<div id="amp" style="height:288px; width:512px"></div>
<script>
// Streamroot-injected informations
var streamrootDna = {
streamrootKey: 'demoswebsiteandpartners',
dnaConfig: {}
};
var hlsjsConfig = {
"maxBufferSize": 0,
"maxBufferLength": 30,
"liveSyncDuration": 30
}
window.addEventListener("load", function () {
var config = {
autoplay: "muted",
playsinline: true,
paths: {
base: "https://samples.streamroot.io/dna/web/assets/"
},
media: {
src: 'https://demo-vod.streamroot.io/index.m3u8',
type: 'application/x-mpegURL'
}
};
amp = akamai.amp.AMP.create("amp", config);
})
</script>
</div>
<div id="streamroot-graphs"></div>
</center>
</body>
</html>