mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Check for mounted file
This commit is contained in:
parent
fb49e2029e
commit
ece06a6d80
@ -1,2 +1,6 @@
|
|||||||
#!/usr/bin/execlineb -P
|
#!/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
|
/usr/local/go2rtc/sbin/go2rtc -config=/usr/local/go2rtc/sbin/go2rtc.yaml
|
||||||
|
fi
|
||||||
@ -17,7 +17,6 @@ export default function WebRtcPlayer({ camera, width, height }) {
|
|||||||
}
|
}
|
||||||
ws.onmessage = ev => {
|
ws.onmessage = ev => {
|
||||||
const msg = JSON.parse(ev.data);
|
const msg = JSON.parse(ev.data);
|
||||||
console.log("For fun " + msg.type + " and a message " + msg.value);
|
|
||||||
|
|
||||||
if (msg.type === 'webrtc/candidate') {
|
if (msg.type === 'webrtc/candidate') {
|
||||||
pc.addIceCandidate({candidate: msg.value, sdpMid: ''});
|
pc.addIceCandidate({candidate: msg.value, sdpMid: ''});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user