-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
69 lines (58 loc) · 2.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>YouTube iFrame API Wrapper</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="video-container" id="ShUyfk4QB-8">
<div class="embed-responsive embed-responsive-16by9">
<div class="embed-responsive-item">
<div class="mask"></div>
<img src="img/preload.gif" class="preload">
<div class="play"></div>
<div class="sound"></div>
<img class="thumb" src="http://img.youtube.com/vi/ShUyfk4QB-8/maxresdefault.jpg">
<div class="iframe" id="video-ShUyfk4QB-8"></div>
</div>
</div>
<div class="progress">
<div class="progress-bar" role="progressbar"></div>
<div class="buffer-bar"></div>
</div>
</div>
<script src="//www.youtube.com/iframe_api"></script>
<script src="Player.js"></script>
<script>
function onYouTubeIframeAPIReady() {
(new Player).init({
id: 'ShUyfk4QB-8',
onLoaded: function(player) {
player.preload.style.display = 'none';
player.playButton.style.display = 'block';
player.soundButton.style.display = 'block';
},
onPlay: function(player) {
player.playButton.style.display = 'none';
},
onPlaying: function(player) {},
onPause: function(player) {
player.playButton.style.display = 'block';
},
onMute: function(player) {},
onUnMute: function(player) {},
onEnd: function(player) {
player.playButton.style.display = 'block';
},
onSeekStart: function(player) {},
onSeeking: function(player) {},
onSeekEnd: function(player) {}
});
}
</script>
</body>
</html>