-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (56 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/a9437c4741.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css">
<link rel="stylesheet" href="style.css">
<title>Video Player</title>
</head>
<body>
<div class="container">
<div class="m-video">
<video src="http://mirrors.standaloneinstaller.com/video-sample/jellyfish-25-mbps-hd-hevc.mp4" class="video" oncontextmenu="return showContextMenu(event)"></video>
<div class="controls">
<div id="custom-seekbar">
<span></span>
</div>
<div class="playback">
<button id="play-pause"></button>
</div>
<div class="speed">
<button id="speed">
<div id="speedList">
<span>Speed</span>
<hr>
<ul>
<li class="spdSet" onclick="setSpeed(0.5)">0.5</li>
<li class="spdSet" onclick="setSpeed(1)">1</li>
<li class="spdSet" onclick="setSpeed(1.5)">1.5</li>
<li class="spdSet" onclick="setSpeed(2)">2</li>
</ul>
</div>
</button>
</div>
<div class="volume">
<i class="fas fa-signal"></i>
<input id="volume-bar" type="range" min="0" max="100">
</div>
<i class="fas fa-expand-arrows-alt" onclick="toggleFullscreen();"></i>
<span id="duration"></span>
</div>
</div>
</div>
<div id="contextMenu" class="context-menu" oncontextmenu="return false;">
<ul>
<li onclick="getUrl()">Copy URL</li>
<li onclick="getUrlCurrentTime()">Copy URL at current time</li>
<li class="seperator"></li>
<li>Go to home page</li>
</ul>
</div>
<script src="script.js"></script>
</body>
</html>