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
+4 -1
View File
@@ -96,7 +96,10 @@ export default function LiveBirdseyeView({
return "jsmpeg";
}
if (isSafari) {
if (
isSafari ||
!("MediaSource" in window || "ManagedMediaSource" in window)
) {
return "webrtc";
}