Check for mounted file

This commit is contained in:
Nick Mowen 2022-10-26 10:30:00 -06:00
parent fb49e2029e
commit ece06a6d80
2 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,6 @@
#!/usr/bin/execlineb -P
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

View File

@ -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: ''});