-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.html
62 lines (54 loc) · 1.65 KB
/
api.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HLS Demo</title>
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
<style>
@import "compass/css3";
.button-holder {
button
{
border: 1px solid #333;
margin: 0 0 5px 5px;
color: #fff;
font-size: 14px;
text-decoration: none;
text-transform: uppercase;
background: #111;
padding: 0.5em;
cursor: pointer;
@include transition(all .2s ease);
}
button:hover {
@include transform(rotate(-45deg));
}
}
@mixin transition($values) {
-webkit-transition: $values;
-moz-transition: $values;
-o-transition: $values;
-ms-transition: $values;
transition: $values;
}
@mixin transform($degrees) {
-webkit-transform: $degrees;
-moz-transform: $degrees;
-o-transform: $degrees;
-ms-transform: $degrees;
transform: $degrees;
}
</style>
<link href="./plyr.css" rel="stylesheet" />
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,Array.prototype.includes,CustomEvent,Object.entries,Object.values,URL"></script>
<script src="./player.js"></script>
<script src="api.js"></script>
</head>
<body>
<div class="container">
<video controls crossorigin playsinline></video>
</div>
<div id="button-container"></div>
<p id="result"></p>
</body>
</html>