-
Notifications
You must be signed in to change notification settings - Fork 0
/
vidstackbase.html
138 lines (133 loc) · 5.38 KB
/
vidstackbase.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/defaults.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vidstack/styles/community-skin/video.min.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/vidstack/dist/cdn/prod.js"></script>
<media-player
title="Sprite Fight"
src="https://stream.mux.com/VZtzUzGRv02OhRnZCxcNg49OilvolTqdnFLEqBsTwaxU.m3u8"
poster="https://image.mux.com/VZtzUzGRv02OhRnZCxcNg49OilvolTqdnFLEqBsTwaxU/thumbnail.webp?time=268&width=980"
thumbnails="https://media-files.vidstack.io/sprite-fight/thumbnails.vtt"
aspect-ratio="16/9"
crossorigin
>
<media-outlet>
<media-poster
alt="Girl walks into sprite gnomes around her friend on a campfire in danger!"
></media-poster>
<track
src="https://media-files.vidstack.io/sprite-fight/subs/english.vtt"
label="English"
srclang="en-US"
kind="subtitles"
default
/>
<track
src="https://media-files.vidstack.io/sprite-fight/chapters.vtt"
srclang="en-US"
kind="chapters"
default
/>
</media-outlet>
<div part="media-ui">
<div part="gestures">
<media-gesture event="pointerup" action="toggle:paused"></media-gesture>
<media-gesture event="pointerup" action="toggle:user-idle"></media-gesture>
<media-gesture event="dblpointerup" action="toggle:fullscreen"></media-gesture>
<media-gesture event="dblpointerup" action="seek:-10"></media-gesture>
<media-gesture event="dblpointerup" action="seek:10"></media-gesture>
</div>
<media-captions>
</media-captions>
<media-buffering-indicator>
</media-buffering-indicator>
<div part="scrim"></div>
<div part="controls">
<div part="controls-group">
<div part="controls-spacer"></div>
<media-menu part="chapters-menu">
<media-menu-button></media-menu-button>
<media-chapters-menu-items>
</media-chapters-menu-items>
</media-menu>
<media-menu>
<media-menu-button></media-menu-button>
<media-menu-items>
<media-menu>
<media-audio-menu-button>
</media-audio-menu-button>
<media-audio-menu-items>
</media-audio-menu-items>
</media-menu>
<media-menu>
<media-playback-rate-menu-button>
</media-playback-rate-menu-button>
<media-playback-rate-menu-items>
</media-playback-rate-menu-items>
</media-menu>
<media-menu>
<media-quality-menu-button>
</media-quality-menu-button>
<media-quality-menu-items>
</media-quality-menu-items>
</media-menu>
<media-menu>
<media-captions-menu-button>
</media-captions-menu-button>
<media-captions-menu-items>
</media-captions-menu-items>
</media-menu>
</media-menu-items>
</media-menu>
</div>
<div part="controls-group"></div>
<div part="controls-group">
<media-time-slider>
<div slot="preview">
<media-slider-thumbnail></media-slider-thumbnail>
<div part="chapter-title"></div>
<media-slider-value>
</media-slider-value>
</div>
</media-time-slider>
</div>
<div part="controls-group">
<media-play-button>
</media-play-button>
<media-mute-button>
</media-mute-button>
<media-volume-slider>
<media-slider-value
type="pointer"
format="percent"
slot="preview">
</media-slider-value>
</media-volume-slider>
<div part="time-group">
<media-time type="current">
</media-time>
<div part="time-divider">/</div>
<media-time type="duration">
</media-time>
</div>
<span part="main-title"></span>
<media-caption-button>
</media-caption-button>
<media-pip-button>
</media-pip-button>
<media-fullscreen-button>
<media-tooltip></media-tooltip>
</media-fullscreen-button>
</div>
</div>
</div>
</media-player>
</body>
</html>