diff --git a/docker/rootfs/etc/services.d/go2rtc/run b/docker/rootfs/etc/services.d/go2rtc/run index 1601fb9a0..82895b316 100644 --- a/docker/rootfs/etc/services.d/go2rtc/run +++ b/docker/rootfs/etc/services.d/go2rtc/run @@ -1,2 +1,6 @@ #!/usr/bin/execlineb -P -/usr/local/go2rtc/sbin/go2rtc -config=/usr/local/go2rtc/sbin/go2rtc.yaml \ No newline at end of file +if [ -f "/config/go2rtc.yaml" ]; then + /usr/local/go2rtc/sbin/go2rtc -config=/config/go2rtc.yaml +else + /usr/local/go2rtc/sbin/go2rtc -config=/usr/local/go2rtc/sbin/go2rtc.yaml +fi \ No newline at end of file diff --git a/web/src/components/WebRtcPlayer.jsx b/web/src/components/WebRtcPlayer.jsx index 37d46fe03..5397717d8 100644 --- a/web/src/components/WebRtcPlayer.jsx +++ b/web/src/components/WebRtcPlayer.jsx @@ -17,7 +17,6 @@ export default function WebRtcPlayer({ camera, width, height }) { } ws.onmessage = ev => { const msg = JSON.parse(ev.data); - console.log("For fun " + msg.type + " and a message " + msg.value); if (msg.type === 'webrtc/candidate') { pc.addIceCandidate({candidate: msg.value, sdpMid: ''});