-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
45 lines (37 loc) · 1.06 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
39
40
41
42
43
44
45
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>videojs-dvr Demo</title>
<link href="https://vjs.zencdn.net/7.6.0/video-js.css" rel="stylesheet">
<link href="dist/videojs-dvr.css" rel="stylesheet">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#videojs-dvr-player {
width: 700px;
height: 400px;
}
</style>
</head>
<body>
<video id="videojs-dvr-player" class="video-js vjs-default-skin" controls autoplay>
<source
src="https://b028.wpc.azureedge.net/80B028/Samples/a38e6323-95e9-4f1f-9b38-75eba91704e4/5f2ce531-d508-49fb-8152-647eba422aec.ism/Manifest(format=m3u8-aapl)"
type='application/x-mpegURL'>
</video>
<script src="https://vjs.zencdn.net/7.6.0/video.js"></script>
<script src="dist/videojs-dvr.js"></script>
<script>
(function (window, videojs) {
var player = window.player = videojs('videojs-dvr-player');
player.dvr();
player.play();
}(window, window.videojs));
</script>
</body>
</html>