-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
301 lines (256 loc) · 11.5 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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="application-name" content="">
<meta name="apple-mobile-web-app-title" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0
shrink-to-fit=no user-scalable=no" />
<!--Google Material Icons-->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Round"/>
<!--Google Material Icons-->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<title>Web Video Player</title>
<link rel="stylesheet" href="styles.css" />
<script src="script.js" defer></script>
</head>
<body>
<div class="video-player-page">
<!--Video Header-->
<div class="video-header">
<div class="video-title">
<span class="video-name">Web Video Player</span>
</div>
</div>
<!--Video Container-->
<div class="video-container paused" data-volume-level="high">
<!--Loading Animation-->
<div class="loader"></div>
<!--Video Source-->
<video preload="metadata">
<source src="assets/video.mp4" type="video/mp4" size="480">
<source src="assets/video.mp4" type="video/mp4" size="720">
<source src="assets/video.mp4" type="video/mp4" size="1080">
<track id="track1" label="English" kind="subtitles" src="assets/test-en.vtt" srclang="en">
<track id="track2" label="Spanish" kind="subtitles" src="assets/test-es.vtt" srclang="es" >
</video>
<p class="caption-text"></p>
<!--Scroll Preview-->
<img class="thumbnail-img">
<div class="controls">
<!--Top Button Controls-->
<div class="top-controls-container">
<button class="autoplay-btn tooltip" aria-label="Autoplay">
<span class="tooltip-text">Autoplay</span>
<span class="material-icons-outlined auto-on">toggle_on</span>
<span class="material-icons-outlined auto-off">toggle_off</span>
</button>
<!--Closed Caption/White-->
<button class="captions-btn tooltip" aria-label="Captions (c)">
<span class="tooltip-text">Captions (c)</span>
<span class="material-icons-outlined caps-on">closed_caption</span>
<span class="material-icons-outlined caps-off">closed_caption_disabled</span>
</button>
<!--Theater Button/WhiteOutline-->
<button class="theater-btn tooltip" aria-label="Theater (t)">
<span class="tooltip-text">Theater (t)</span>
<span class="material-icons theater">crop_5_4</span>
<span class="material-icons original">crop_16_9</span>
</button>
<!--Mini Player/WhiteOutline-->
<button class="miniplayer-btn tooltip" aria-label="Miniplayer (i)">
<span class="tooltip-text">Miniplayer (i)</span>
<span class="material-icons in">picture_in_picture</span>
<span class="material-icons out">picture_in_picture_alt</span>
</button>
</div>
<!--Bottom Button Controls-->
<div class="bottom-controls-container">
<!--Replay-->
<button class="replay-btn tooltip" aria-label="Replay 10s (j)">
<span class="tooltip-text">Replay 10s (j)</span>
<span class="material-icons">fast_rewind</span>
</button>
<!--Play-->
<button class="play-pause-btn tooltip" aria-label="Play (k)">
<span class="tooltip-text">Play (k)</span>
<span class="material-icons play-icon">play_arrow</span>
<span class="material-icons pause-icon">pause</span>
<span class="material-icons replay-icon">replay</span>
</button>
<!--Forward-->
<button class="forward-btn tooltip" aria-label="Forward 10s (l)">
<span class="tooltip-text">Forward 10s (l)</span>
<span class="material-icons">fast_forward</span>
</button>
<!--Timeline-->
<div class="timeline-container">
<div class="timeline">
<img class="preview-img">
<div class="thumb-indicator"></div>
</div>
</div>
<!--Duration counter-->
<div class="duration-container">
<div class="current-time" aria-label="Current time">0:00</div>
/
<div class="total-time" aria-label="Duration"></div>
</div>
<!--Volume Controls-->
<div class="volume-container">
<button class="mute-btn tooltip" aria-label="Mute (m)">
<span class="tooltip-text">Mute (m)</span>
<span class="material-icons volume-up">volume_up</span>
<span class="material-icons volume-down">volume_down</span>
<span class="material-icons volume-off">volume_off</span>
</button>
<input class="volume-slider" type="range" min="0" max="1" step="any" value="1" style="--volume-level:1">
</div>
<!--Playback Speed-->
<button class="speed-btn tooltip" aria-label="Play Speed">
<span class="tooltip-text">Play Speed</span>
<span class="speed-btn-txt">1x</span>
</button>
<!--Settings/SolidWhile-->
<button class="tooltip" aria-label="Settings">
<span class="tooltip-text">Settings</span>
<span class="settings-btn material-icons">settings</span>
</button>
<div class="settings">
<div data-label="settingsMenu">
<ul>
<li data-label="speed">
<span> Speed </span>
<div>
<button class="material-icons" data-label="speed">
<!--Find a way to add selector here-->
navigate_next
</button>
</div>
</li>
<li data-label="quality">
<span>Quality</span>
<div>
<button class="material-icons" data-label="quality">
navigate_next
</button>
</div>
</li>
<li data-label="captions">
<span>Captions</span>
<div>
<button class="material-icons" data-label="captions">
navigate_next
</button>
</div>
</li>
</ul>
</div>
<div class="playback" data-label="speed" hidden>
<span>
<button class="material-icons arrow_back" data-label="settingsMenu">
arrow_back
</button>
<span>Playback Speed</span>
</span>
<ul>
<li data-speed="0.25">
<button>
<input type="radio" id="0.25" name="speed" value="0.25">
</button>
<label for="0.25">0.25</label>
</li>
<li data-speed="0.5">
<button>
<input type="radio" id="0.5" name="speed" value="0.5">
</button>
<label for="0.5">0.5</label>
</li>
<li data-speed="0.75">
<button>
<input type="radio" id="0.75" name="speed" value="0.75">
</button>
<label for="0.75">0.75</label>
</li>
<li data-speed="1" class="active">
<button>
<input type="radio" id="1" name="speed" value="normal" checked>
</button>
<label for="1">Normal</label>
</li>
<li data-speed="1.25">
<button>
<input type="radio" id="1.25" name="speed" value="1.25">
</button>
<label for="1.25">1.25</label>
</li>
<li data-speed="1.5">
<button>
<input type="radio" id="1.5" name="speed" value="1.5">
</button>
<label for="1.5">1.5</label>
</li>
<li data-speed="1.75">
<button>
<input type="radio" id="1.75" name="speed" value="1.75">
</button>
<label for="1.75">1.75</label>
</li>
<li data-speed="2">
<button>
<input type="radio" id="2" name="speed" value="2">
</button>
<label for="2">2</label>
</li>
</ul>
</div>
<div data-label="quality" hidden>
<span>
<button
class="material-icons arrow_back"
data-label="settingsMenu">arrow_back
</button>
<span>Playback Quality</span>
</span>
<ul>
<li data-quality="auto" class="active">
<button>
<input type="radio" name="quality" value="auto" checked>
</button>
<span>auto</span>
</li>
</ul>
</div>
<div class="captionsMenu" data-label="captions" hidden>
<div class="subtitles">
<span>
<button
class="material-icons arrow_back"
data-label="settingsMenu">arrow_back
</button>
<span>Select Subtitle</span>
</span>
<ul>
</ul>
</div>
</div>
</div>
<!--Fullscreen/SolidWhite-->
<button class="fullscreen-btn tooltip" aria-label="Fullscreen (f)">
<span class="tooltip-text">Fullscreen (f)</span>
<span class="material-icons open">fullscreen</span>
<span class="material-icons close">fullscreen_exit</span>
</button>
</div>
</div>
</div>
</div>
</body>
</html>