-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
49 lines (47 loc) · 1.1 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
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<title>WS Video Player</title>
<style media="screen">
html, body {
height: 100%;
}
body {
background-color: #f4f4f4;
margin: 0;
padding: 0;
font-family: Open Sans,Helvetica Neue,Helvetica,arial,sans-serif;
font-size: 14px;
color: #070707;
}
.container {
max-width: 540px;
margin: 200px auto;
height: 2000px;
}
</style>
<script type="text/javascript">
window.onload = function() {
var container = document.querySelector('#video-player')
new WSVideoPlayer(container, {
src: 'http://ocphdh79p.bkt.clouddn.com/be3edbea13dd99f485f5e3ad3d15579c.mp4',
poster: 'http://ocphdh79p.bkt.clouddn.com/cheap-thrills.png',
autoPlay: false,
loop: false
})
}
</script>
</head>
<body>
<div class="main">
<div class="content">
<div class="container">
<div id="video-player"></div>
</div>
</div>
</div>
</body>
</html>