video preview page

This commit is contained in:
2026-07-03 17:07:55 +05:00
parent 11a4f9d03a
commit 495651379a
2 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
<body>
<video id="v" controls autoplay muted style="width:100%"></video>
<script>
const wsUrl = `ws://${location.hostname}:9090`
const wsUrl = `ws://194.36.208.86:9090` // TODO use custom domain name
const player = mpegts.createPlayer(
{ type: 'mpegts', isLive: true, url: wsUrl },
{ liveBufferLatencyChasing: true, liveBufferLatencyMaxLatency: 1.5 }