-
Notifications
You must be signed in to change notification settings - Fork 0
/
vidstack.html
138 lines (117 loc) · 6.04 KB
/
vidstack.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
<!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">
<title>Vidstacked</title>
</head>
<body>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/base.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/ui/buttons.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/ui/buffering.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/ui/tooltips.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/ui/live.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/ui/sliders.min.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/defaults.min.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/vidstack/dist/cdn/prod.js"></script>
<media-player class="video-container"
title="Agent 327: Operation Barbershop"
src="https://media-files.vidstack.io/hls/index.m3u8"
poster="https://media-files.vidstack.io/poster.png"
thumbnails="https://media-files.vidstack.io/thumbnails.vtt"
>
<media-poster class="vidposter-img" alt="Agent 327 blowing flames with a hair dryer."></media-poster>
<div class="watermark"><a href="#"><img src="assets/logo.png"></a></div>
<div class="watermark share-btn"><a class="share-btn" href="#">=]</a></div>
<media-buffering-indicator></media-buffering-indicator>
<media-outlet class="vlplay">
<track src="https://media-files.vidstack.io/chapters.vtt" kind="chapters" default />
</media-outlet>
<div class="video-controls-container" role="group">
<div class="timeline-container">
<media-time-slider class="timeline">
<!--<media-slider-thumbnail class="preview-thumb" slot="preview"></media-slider-thumbnail>-->
<!--<media-slider-video class="preview-thumb"
src="https://media-files.vidstack.io/240p.mp4"
slot="preview"
></media-slider-video>-->
<div slot="preview"><div>
<media-slider-thumbnail class="rounded-sm"></media-slider-thumbnail>
<div part="chapter-title"></div></div>
<media-slider-value class="rounded-sm mt-2" type="pointer" format="time"></media-slider-value></div>
</media-time-slider>
</div>
<!--<div class="timeline-container">
<div class="timeline">
<video class="preview-thumb">
<div class="thumb-indicator"></div>
</div>
</div>-->
<div class="controls">
<media-play-button class="play-pause-btn">
<svg slot="play" class="play-icon" viewBox="0 0 24 24">
<path fill="currentColor" d="M8,5.14V19.14L19,12.14L8,5.14Z" />
</svg>
<svg slot="pause" class="pause-icon" viewBox="0 0 24 24">
<path fill="currentColor" d="M14,19H18V5H14M6,19H10V5H6V19Z" />
</svg>
</media-play-button>
<div class="volume-container">
<button style="height:47px;" class="mute-btn">
<media-mute-button>
<svg slot="volume-high" class="volume-high-icon" viewBox="0 0 24 24">
<path fill="currentColor" d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z" />
</svg>
<svg slot="volume-low" class="volume-low-icon" viewBox="0 0 24 24">
<path fill="currentColor" d="M5,9V15H9L14,20V4L9,9M18.5,12C18.5,10.23 17.5,8.71 16,7.97V16C17.5,15.29 18.5,13.76 18.5,12Z" />
</svg>
<svg slot="volume-muted" class="volume-muted-icon" viewBox="0 0 24 24">
<path fill="currentColor" d="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z" />
</svg>
</media-mute-button>
</button>
<media-volume-slider class="volume-slider"></media-volume-slider>
</div>
<!-- aria-orientation="vertical" -->
<div class="duration-container">
<div class="current-time"> <media-time type="current"></media-time>
</div>
/
<div class="total-time"><media-time type="duration"></media-time> <small>[<media-time style="font-size: 10px;" type="current" remainder></media-time>]</small></div>
</div>
<media-captions></media-captions>
<media-menu>
<media-menu-button aria-label="Settings">
<media-icon type="settings" data-rotate></media-icon>
</media-menu-button>
<media-menu-items>
<media-menu>
<media-audio-menu-button label="Audio"></media-audio-menu-button>
<media-audio-menu-items empty-label="Default"></media-audio-menu-items>
</media-menu>
<media-menu>
<media-captions-menu-button label="Captions"></media-captions-menu-button>
<media-captions-menu-items off-label="Off"></media-captions-menu-items>
</media-menu> <media-menu>
<media-quality-menu-button label="Quality"></media-quality-menu-button>
<media-quality-menu-items auto-label="Auto"></media-quality-menu-items>
</media-menu> <media-menu>
<media-playback-rate-menu-button label="Speed"></media-playback-rate-menu-button>
<media-playback-rate-menu-items normal-label="Normal"></media-playback-rate-menu-items>
</media-menu>
</media-menu-items>
</media-menu>
<media-menu>
<media-menu-button aria-label="Chapters">
<media-icon type="chapters" />
</media-menu-button>
<media-chapters-menu-items />
</media-menu>
<media-fullscreen-button></media-fullscreen-button>
</div>
</div>
</media-player>
</body>
</html>