forked from Github/frigate
Fix two way talk starting webrtc session (#10422)
* Fix two way talk starting webrtc session * Remove logs
This commit is contained in:
@@ -129,6 +129,14 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
||||
}
|
||||
}, [camera, fullscreen, isPortrait]);
|
||||
|
||||
const preferredLiveMode = useMemo(() => {
|
||||
if (isSafari || mic) {
|
||||
return "webrtc";
|
||||
}
|
||||
|
||||
return "mse";
|
||||
}, [mic]);
|
||||
|
||||
const windowAspectRatio = useMemo(() => {
|
||||
return windowWidth / windowHeight;
|
||||
}, [windowWidth, windowHeight]);
|
||||
@@ -263,7 +271,7 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
||||
cameraConfig={camera}
|
||||
playAudio={audio}
|
||||
micEnabled={mic}
|
||||
preferredLiveMode={isSafari || mic ? "webrtc" : "mse"}
|
||||
preferredLiveMode={preferredLiveMode}
|
||||
/>
|
||||
</div>
|
||||
{camera.onvif.host != "" && <PtzControlPanel camera={camera.name} />}
|
||||
|
||||
Reference in New Issue
Block a user