-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (27 loc) · 922 Bytes
/
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
<!-- http://www.brucelawson.co.uk/2010/a-minimal-html5-document/ -->
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Facebook MP4 Server</title>
<link rel="stylesheet" href="https://cdn.plyr.io/3.5.10/plyr.css" />
<style type="text/css">
.video-example {
max-width: 700px;
margin: 30px auto;
}
</style>
</head>
<body>
<video class="js-player" playsinline controls>
<source src="/video/redirect/718124812323422" type="video/mp4" />
</video>
<!-- https://github.com/sampotts/plyr -->
<script src="https://cdn.plyr.io/3.5.10/plyr.js"></script>
<script>
const players = Array.from(document.querySelectorAll('.js-player')).map(p => new Plyr(p));
console.log('players', players);
</script>
</body>
</html>