forked from newshorts/InlineVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (93 loc) · 2.94 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
canvas {
background-color: black;
width: 640px;
height: 320px;
}
/* video::-webkit-media-controls {
display:none !important;
}*/
/* video {
display: none;
visibility: hidden;
}*/
/* inline video styles */
.inlineVideoContainer {
position: relative;
display: block;
}
.inlineVideoPoster {
position: absolute;
top: 0;
left: 0;
border: 1px dashed red;
}
.inlineVideoPlayer {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
button {
position: absolute;
color: white;
font-size: 18px;
border-radius: 10px;
padding: 10px;
background-color: #3ac;
border: none;
}
.inlineVideoPlayButton {
top: 40%;
left: 50%;
margin-left: -100px;
}
.inlineVideoPauseButton {
top: 40%;
left: 59%;
margin-left: -100px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="js/requestAnimationFrame.js"></script>
<script src="js/inline-video.js"></script>
<script>
var FrameRates = {
film: 24,
NTSC : 29.97,
NTSC_Film: 23.98,
NTSC_HD : 59.94,
PAL: 25,
PAL_HD: 50,
web: 30,
high: 60
};
debug = true;
</script>
<script>
(function() {
$(window).load(function() {
});
})(jQuery);
</script>
</head>
<body>
<div class="container">
<video width="320" height="176" controls poster="http://www.w3schools.com/images/w3html5.gif" playsinline webkit-playsinline>
<source src="video/buck.mp4" type="video/mp4">
</video>
</div>
</body>
</html>