-
Notifications
You must be signed in to change notification settings - Fork 0
/
video2.html
47 lines (47 loc) · 2.13 KB
/
video2.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
<!DOCTYPE html>
<html>
<head>
<title>Three Gorges Dam Stream (side angle)</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="noarchive,snippet,index,follow">
<meta name="referrer" content="no-referrer">
<style type="text/css">
body {
font-family:sans-serif
}
</style>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
</head>
<body>
<p><b>Stream selection</b>: <a href="video2.html">side angle</a> + <a href="video.html">spillway angle</a>. <!-- Bonus: <a href="video3.html">Wuhan</a> --></p>
<video id="video" width="960" height="540" controls></video>
<script>
var video = document.getElementById('video');
var videoSrc = 'http://mobilelive-play.ysp.cctv.cn/ysp/2004464001_hd.m3u8';
if (Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(videoSrc);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, function() {
video.play();
});
}
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = videoSrc;
video.addEventListener('loadedmetadata', function() {
video.play();
});
}
</script>
<br>
<p>
Direct stream link for mpv/vlc: <input style="width: 28em" type="text" value="http://mobilelive-play.ysp.cctv.cn/ysp/2004464001_hd.m3u8" readonly> (hd → fhd also works but makes the stream unstable)
</p>
<p>
If this doesn't work, try YouTube re-streams <a href="https://www.youtube.com/user/ChinaTimes/featured">here</a> <!-- or <a href="https://www.youtube.com/watch?v=Fhddcv7p2QM">here</a> -->, or Twitch re-stream <a href="https://www.twitch.tv/tgdfloodwatch">here</a>, or a multi-stream <a href="http://yhx.in/live">here</a><!-- https://www.youtube.com/watch?v=nwM4LFRWcZw https://www.youtube.com/watch?v=hQ4kz8U-ngs -->. The original stream is <a href="https://m.yangshipin.cn/video?type=2&pid=600040613&ptag=4_1.0.5.15187_copy">this</a>.
</p>
<p>
<a href="/">← back to the main page</a>
</p>
</body>
</html>