Fix wrong URL in hls.html example
This commit is contained in:
+1
-2
@@ -21,8 +21,7 @@
|
|||||||
<video id="video" autoplay controls playsinline muted></video>
|
<video id="video" autoplay controls playsinline muted></video>
|
||||||
<script>
|
<script>
|
||||||
// http://192.168.1.123:1984/hls.html?src=demo&mp4
|
// http://192.168.1.123:1984/hls.html?src=demo&mp4
|
||||||
// const url = new URL('api/stream.m3u8' + location.search, location.href);
|
const url = new URL('api/stream.m3u8' + location.search, location.href);
|
||||||
const url = 'http://192.168.10.5:1984/api/stream.m3u8?src=rtsp-dahua2&mp4';
|
|
||||||
|
|
||||||
const video = document.getElementById('video');
|
const video = document.getElementById('video');
|
||||||
if (Hls.isSupported()) {
|
if (Hls.isSupported()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user