-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (53 loc) · 1.46 KB
/
index.html
File metadata and controls
53 lines (53 loc) · 1.46 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Video Stream Demo</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/hls-video-element@1.1/+esm"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
body, html {
margin: 0; padding: 0; height: 100%;
font-family: 'Inter', sans-serif;
background: black;
color: #f3faf8;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
flex-direction: column;
gap: 0.4rem;
}
h1 {
font-weight: 600;
font-size: 3rem;
text-shadow: 0 2px 8px rgba(0,0,0,0.6);
margin: 0;
color:#f3faf8;
}
p {
font-weight: 400;
font-size: 1.25rem;
max-width: 600px;
text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
hls-video {
max-width: 720px;
width: 90vw;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0,0,0,0.7);
background-color: #001f3f;
}
</style>
</head>
<body>
<h1>Streaming Video Demo</h1>
<p>Playing adaptive bitrate HLS stream from Cloudflare R2 manifest URL.</p>
<hls-video
controls
crossorigin="anonymous"
src="https://pub-3de7d22a2c5c465d88a0ae7f44653fac.r2.dev/videos/15/master.m3u8"
></hls-video>
</body>
</html>