Add exports message and default to webrtc on < iOS 17.1 (#12281)

This commit is contained in:
Josh Hawkins
2024-07-03 08:44:25 -05:00
committed by GitHub
parent 784b701cc5
commit 1f4ca32e8c
7 changed files with 45 additions and 16 deletions

View File

@@ -222,6 +222,10 @@ export default function LiveCameraView({
return "jsmpeg";
}
if (!("MediaSource" in window || "ManagedMediaSource" in window)) {
return "webrtc";
}
return "mse";
}, [lowBandwidth, mic, webRTC, isRestreamed]);