-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlive.html
39 lines (39 loc) · 1.02 KB
/
live.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live!</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flv.min.js"></script>
</head>
<body>
<video controls></video>
<script>
if(flvjs.isSupported()){
let v = document.querySelector("video");
let fp = flvjs.createPlayer({
type: "flv",
isLive: true,
url: "https://fantasia.neko.ist/live/2022.flv"
});
fp.attachMediaElement(v);
fp.load();
fp.play();
}
</script>
<style>
video{
width:80vw;
height:auto;
box-shadow: 0 10px 1.5em -0.5em black;
}
html{
display:flex;
align-items: center;
justify-content: center;
height:100vh;
background: rgb(226, 226, 226);
}
</style>
</body>
</html>