-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
119 lines (119 loc) · 4.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<title>Custom Video Controls</title>
</head>
<body>
<div class="video-container">
<video
id="video"
disableRemotePlayback
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
></video>
<span class="custom-loader"></span>
<div class="player-state">
<span class="state-btn state-backward">
<ion-icon name="play-back-outline"></ion-icon>
<span class="backward-duration">5</span>
</span>
<span class="main-state state-btn">
<ion-icon name="play-outline"></ion-icon>
</span>
<span class="state-btn state-forward">
<span class="forward-duration">5</span>
<ion-icon name="play-forward-outline"></ion-icon>
</span>
</div>
<div class="controls">
<div class="duration">
<div class="current-time"></div>
<div class="hover-time">
<span class="hover-duration"></span>
</div>
<div class="buffer"></div>
</div>
<div class="btn-controls">
<div class="btn-con">
<span class="play-pause control-btn">
<ion-icon name="play-outline"></ion-icon>
</span>
<span class="volume">
<span class="mute-unmute control-btn">
<ion-icon name="volume-high-outline"></ion-icon>
</span>
<div class="max-vol">
<div class="current-vol"></div>
</div>
</span>
<span class="time-container">
<span class="current-duration">0:00</span>
<span>/</span>
<span class="total-duration">0:00</span>
</span>
</div>
<div class="right-controls">
<span class="backward control-btn" title="5 backward">
<ion-icon name="play-back-outline"></ion-icon>
</span>
<span class="forward control-btn" title="5 forward">
<ion-icon name="play-forward-outline"></ion-icon>
</span>
<span class="mini-player control-btn">
<ion-icon name="albums-outline"></ion-icon>
</span>
<span class="settings control-btn">
<span class="setting-btn">
<ion-icon name="options-outline"></ion-icon>
</span>
<ul class="setting-menu">
<li data-value="0.25">0.25x</li>
<li data-value="0.5">0.5x</li>
<li data-value="0.75">0.75x</li>
<li data-value="1" class="speed-active">1x</li>
<li data-value="1.25">1.25x</li>
<li data-value="1.5">1.5x</li>
<li data-value="1.75">1.75x</li>
<li data-value="2">2x</li>
</ul>
</span>
<span class="theater-btn control-btn">
<span class="theater-default">
<ion-icon name="tablet-landscape-outline"></ion-icon>
</span>
<span class="theater-active">
<ion-icon name="tv-outline"></ion-icon>
</span>
</span>
<span class="fullscreen-btn control-btn" title="fullscreen">
<span class="full">
<ion-icon name="scan-outline"></ion-icon>
</span>
<span class="contract">
<ion-icon name="contract-outline"></ion-icon>
</span>
</span>
</div>
</div>
</div>
</div>
<script defer src="main.js"></script>
</body>
</html>