mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-09 19:11:09 +00:00
18 lines
455 B
HTML
18 lines
455 B
HTML
<html>
|
|
<link rel="shortcut icon" href="about:blank"/>
|
|
<body>
|
|
<video controls id="video"></video>
|
|
<script src="https://cdn.jsdelivr.net/hls.js/latest/hls.js" ></script>
|
|
<script>
|
|
if (Hls.isSupported()) {
|
|
var video = document.getElementById("video");
|
|
var hls = new Hls();
|
|
hls.loadSource("unicast.m3u8");
|
|
hls.attachMedia(video);
|
|
hls.on(Hls.Events.MANIFEST_PARSED, function() { video.play(); });
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|