custom domain name

This commit is contained in:
2026-07-03 17:30:05 +05:00
parent 3eb9680ef8
commit 80772c8751
2 changed files with 6 additions and 6 deletions

View File

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