custom domain name
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<video id="v" controls autoplay muted style="width:100%"></video>
|
<video id="v" controls autoplay muted style="width:100%"></video>
|
||||||
<script>
|
<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(
|
const player = mpegts.createPlayer(
|
||||||
{ type: 'mpegts', isLive: true, url: wsUrl },
|
{ type: 'mpegts', isLive: true, url: wsUrl },
|
||||||
{ liveBufferLatencyChasing: true, liveBufferLatencyMaxLatency: 1.5 }
|
{ liveBufferLatencyChasing: true, liveBufferLatencyMaxLatency: 1.5 }
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ services:
|
|||||||
container_name: mqtt-worker
|
container_name: mqtt-worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- mosquitto
|
- mosquitto
|
||||||
ports:
|
expose:
|
||||||
# - "80:80"
|
- 80
|
||||||
- "9090:9090" # external WebSocket port for video streaming
|
- 9090
|
||||||
environment:
|
environment:
|
||||||
MQTT_URL: mqtt://mosquitto:1883
|
MQTT_URL: mqtt://mosquitto:1883
|
||||||
HTTP_PORT: "80"
|
HTTP_PORT: 80 # http port for video previewiong page
|
||||||
WS_PORT: "9090"
|
WS_PORT: 9090 # WebSocket port for video streaming
|
||||||
CLOUD_INGEST_URL: ${CLOUD_INGEST_URL:-https://demo.backend.drill.greact.ru/ingest}
|
CLOUD_INGEST_URL: ${CLOUD_INGEST_URL:-https://demo.backend.drill.greact.ru/ingest}
|
||||||
CLOUD_INGEST_API_KEY: ${CLOUD_INGEST_API_KEY:-}
|
CLOUD_INGEST_API_KEY: ${CLOUD_INGEST_API_KEY:-}
|
||||||
DEMO_CLOUD_INGEST_URL: ${DEMO_CLOUD_INGEST_URL:-}
|
DEMO_CLOUD_INGEST_URL: ${DEMO_CLOUD_INGEST_URL:-}
|
||||||
|
|||||||
Reference in New Issue
Block a user