forked from LibreSpark/LibreTV
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcast.html
More file actions
78 lines (73 loc) · 2.14 KB
/
Copy pathcast.html
File metadata and controls
78 lines (73 loc) · 2.14 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
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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="same-origin">
<meta name="theme-color" content="#05070b">
<title>LibreTV 投屏</title>
<link rel="icon" href="image/logo.png">
<script src="libs/hls.min.js"></script>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: #05070b;
color: #f8fafc;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
overflow: hidden;
}
.cast-shell {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: #05070b;
}
video {
width: 100vw;
height: 100vh;
object-fit: contain;
background: #000;
}
.cast-status {
position: fixed;
left: 24px;
right: 24px;
bottom: 24px;
padding: 12px 16px;
border-radius: 8px;
background: rgba(8, 13, 22, 0.78);
color: #cbd5e1;
font-size: 16px;
line-height: 1.5;
backdrop-filter: blur(12px);
}
.cast-title {
position: fixed;
left: 24px;
top: 20px;
max-width: calc(100vw - 48px);
color: rgba(248, 250, 252, 0.86);
font-size: 18px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
</style>
</head>
<body>
<main class="cast-shell">
<video id="castVideo" controls autoplay playsinline></video>
<div id="castTitle" class="cast-title">LibreTV 投屏</div>
<div id="castStatus" class="cast-status">正在准备投屏播放...</div>
</main>
<script src="js/cast-receiver.js"></script>
</body>
</html>