-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
74 lines (73 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Video Player</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css"/>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- New Video Source -- Mixkit -- https://mixkit.co -->
<!-- Cars on Rainy Street -->
<!-- https://assets.mixkit.co/videos/preview/mixkit-cars-heading-through-heavy-rain-27704-large.mp4 -->
<!-- Thunderstorm -->
<!-- https://assets.mixkit.co/videos/preview/mixkit-thunderstorm-at-night-4422-large.mp4 -->
<!-- Car Driving -->
<!-- https://assets.mixkit.co/videos/preview/mixkit-highway-in-the-middle-of-a-mountain-range-4633-large.mp4 -->
<div class="player">
<video class="video" src='https://assets.mixkit.co/videos/preview/mixkit-highway-in-the-middle-of-a-mountain-range-4633-large.mp4' playsinline></video>
<div class="show-controls">
<div class="controls-container">
<!-- Progress Bar -->
<div class="progress-range" title="Seek">
<div class="progress-bar"></div>
</div>
<div class="control-group">
<!-- Left Controls -->
<div class="controls-left">
<!-- Play/Pause -->
<div class="play-controls">
<i class="fas fa-play" title="Play" id="play-btn"></i>
</div>
<!-- Volume -->
<div class="volume">
<div class="volume-icon">
<i class="fas fa-volume-up" title="Mute" id="volume-icon"></i>
</div>
<div class="volume-range" title="Change Volume">
<div class="volume-bar"></div>
</div>
</div>
</div>
<!-- Right Controls -->
<div class="controls-right">
<!-- Speed -->
<div class="speed" title="Playback Rate">
<select name="playbackRate" class="player-speed">
<option value="0.5">0.5 x</option>
<option value="0.75">0.75 x</option>
<option value="1" selected>1.0 x</option>
<option value="1.5">1.5 x</option>
<option value="2">2.0 x</option>
</select>
</div>
<!-- Time -->
<div class="time">
<span class="time-elapsed">00:00 / </span>
<span class="time-duration">02:49</span>
</div>
<!-- Fullscreen -->
<div class="fullscreen">
<i class="fas fa-expand"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Script -->
<script src="script.js"></script>
</body>
</html>