mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +03:00
check for mic first
This commit is contained in:
parent
fbf1b5fd55
commit
97f7ec6f3e
@ -200,6 +200,10 @@ export default function LiveCameraView({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const preferredLiveMode = useMemo(() => {
|
const preferredLiveMode = useMemo(() => {
|
||||||
|
if (mic) {
|
||||||
|
return "webrtc";
|
||||||
|
}
|
||||||
|
|
||||||
if (webRTC && isRestreamed) {
|
if (webRTC && isRestreamed) {
|
||||||
return "webrtc";
|
return "webrtc";
|
||||||
}
|
}
|
||||||
@ -208,10 +212,6 @@ export default function LiveCameraView({
|
|||||||
return "jsmpeg";
|
return "jsmpeg";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mic) {
|
|
||||||
return "webrtc";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lowBandwidth) {
|
if (lowBandwidth) {
|
||||||
return "jsmpeg";
|
return "jsmpeg";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user