-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
244 lines (238 loc) · 6.04 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Extreme Player Test Page</title>
<style media="screen">
.ext-video-container {
position: relative;
width: 80%;
}
.ext-video video {
width: 100%;
}
.ext-controls-ui {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.3);
z-index: 22;
}
.ext-playback-controls {
position: absolute;
top: 50%;
width: 100%;
transform: translateY(-50%);
text-align: center;
}
.pbc-sec {
display: inline-block;
}
.pbc-sec img {
cursor: pointer;
width: 60px;
}
.pbc-bkwd {
margin-right: 40px;
}
.pbc-frwd {
margin-left: 40px;
}
.pbc-play img {
width: 90px;
position: relative;
top: 15px;
}
/** bottom controls **/
.ext-bottom-controls {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 6px 0;
color: #fff;
/* fallback */
background-color: rgba(0, 0, 0, 0.3);
/* Safari 4-5, Chrome 1-9 */
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4c4c4c), to(transparent));
/* Safari 5.1, Chrome 10+ */
background: -webkit-linear-gradient(top, transparent, #4c4c4c);
/* Firefox 3.6+ */
background: -moz-linear-gradient(top, transparent, #4c4c4c);
/* IE 10 */
background: -ms-linear-gradient(top, transparent, #4c4c4c);
/* Opera 11.10+ */
background: -o-linear-gradient(top, transparent, #4c4c4c);
}
/** range **/
input[type=range]{
/* fix for FF unable to apply focus style bug */
/* border: 1px solid white; */
/** for webkit supported browsers **/
-webkit-appearance: none;
width: 100%;
margin: 0
}
/** The range track **/
/** for webkit supported browsers **/
input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
background: #f5871f;
border: none;
border-radius: 0;
}
input[type=range]::-moz-range-track {
width: 100%;
height: 4px;
background: #f5871f;
border: none;
border-radius: 0;
}
/** The thumb **/
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #d66a03;
margin-top: -6px;
box-sizing: border-box;
}
input[type=range]::-moz-range-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #d66a03;
box-sizing: border-box;
}
/** When the input got focused **/
input[type=range]:focus {
outline: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
/** Changes the background color when got focused **/
/* background: #ccc; */
}
/** For firefox **/
/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
outline: 1px solid white;
outline-offset: -1px;
}
input[type=range]:focus::-moz-range-track {
background: #ccc;
}
/** And finally for IE **/
input[type=range]::-ms-track {
width: 100%;
height: 5px;
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
background: transparent;
/*leave room for the larger thumb to overflow with a transparent border */
border-color: transparent;
border-width: 6px 0;
/*remove default tick marks*/
color: transparent;
}
input[type=range]::-ms-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: goldenrod;
}
/** End of input range style **/
.bt-progress {
margin-bottom: 6px;
}
.misc-l-duration p {
font-family: inherit;
margin: 0;
font-size: 14px;
}
.misc-left {
float: left;
}
.misc-right {
float: right;
}
.btn-ctrls-misc {
padding: 5px 10px;
}
.misc-right .btns button {
background: transparent;
border: 0;
outline: none;
padding: 0;
margin-left: 15px;
cursor: pointer;
}
.misc-right .btns button img {
width: 16px;
}
</style>
</head>
<body>
<div id="ext-video"></div>
<div class="ext-video-container">
<div class="ext-player">
<video>
<source src="./assets/introduction.mp4" type="video/mp4">
</video>
</div>
<div class="ext-controls-ui">
<div class="ext-top-controls">
</div>
<div class="ext-playback-controls">
<div class="pbc-box">
<div class="pbc-bkwd pbc-sec">
<img src="./assets/icons/backward.svg">
</div>
<div class="pbc-play pbc-sec">
<img src="./assets/icons/loading.svg" id="ext-vdo-loader" style="display: none;">
<img src="./assets/icons/play.svg">
<img src="./assets/icons/pause.svg" style="display: none;">
</div>
<div class="pbc-frwd pbc-sec">
<img src="./assets/icons/forward.svg">
</div>
</div>
</div>
<div class="ext-bottom-controls">
<div class="ext-bt-ctrls">
<div class="bt-progress">
<input type="range">
</div>
<div class="btn-ctrls-misc">
<div class="misc-left">
<div class="misc-l-duration">
<p><span class="ld-start">00:01:30</span> / <span class="ld-end">00:02:50</span></p>
</div>
</div>
<div class="misc-right">
<div class="btns">
<button type="button"><img src="./assets/icons/subtitles.svg"></button>
<button type="button">
<img src="./assets/icons/volume-off.svg" style="display: none;">
<img src="./assets/icons/volume-reduced.svg">
<img src="./assets/icons/volume-full.svg" style="display: none;">
</button>
<button type="button">
<img src="./assets/icons/fullscreen.svg">
<img src="./assets/icons/fullscreen-exit.svg" style="display: none;">
</button>
</div>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>