-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetUserMedia() does not work for Safari and IOS devices #1550
Comments
I'm facing the same issue. Any solution? |
For me, the issue is not with
Now, |
I am building flutter-webrtc based app on iOS and Android. I have
then the app crashes on user joined
The camera is turning ON but the RTCVideoView _localRenderer shows nothing, also no video stream is shown to the other user. Any insights on this? The audio works, but the video is not shown, on iOS |
I think you need to call setState((){
_localRenderer.srcObject = _localStream;
}); |
I'm facing the same issue I already have the urls key instead of url but keep failing on Safari and Chrome for iOS and on Safari for MacOS Any possible solution? CC @cloudwebrtc @0010SS |
Could you provide a snapshot of your code? |
CC @0010SS |
Any possible solution? @cloudwebrtc |
Have you tried to check out the WebRTC console log for Safari? You can probably spot the errors there and see how they go. |
The problem is that It's failing to add the track on Safari, this issue is not presented on Google Chrome, Android nor iOS. On the Mobile App, the code is capable of adding both tracks local and remote but Safari fails to add the remote track. |
Have you checked out the WebRTC console log of Safari to see whether there are any errors? That's how I solve the problem. |
Yes I posted a Screenshot and the code in my past comment |
Safari doesn't tell me much about the error, the browser just tells the line of code where it is |
Any update here? |
managed to fix this by adding the 'mandatory' object to 'video':
i actually don't understand the logic behind this, at least there should be a warning to notify that it's required. |
Worked! Thanks |
Hi! I am currently developing an app using the flutter_webrtc package. It turns out that when I call WebRTC's getUserMedia method for my Flutter web app as below, it does not prompt me to check for camera permission, and the whole app is just stuck. This situation happens with Mac Safari and both IOS Chrome and Safari.
This code is directly from the official flutter_webrtc sample: https://github.com/flutter-webrtc/flutter-webrtc/blob/main/example/lib/src/get_user_media_sample.dart. The version of my flutter_webrtc package is 0.9.47, the version for my Mac safari is 17.3, the version for my Dart SDK is 3.2.3, and the version for my Flutter is 3.16.5.
In addition, I've found out the following code snippet from the compiled Javascript file
main.dart.js
. It seems that Flutter calls a specific method calledwebkitGetUserMedia
which seems to fit into Safari, but it just doesn't work. Probably due to some restrictions by Apple?I greatly appreciate anyone who knows the solution to this problem so that getUserMedia can work for Flutter Web App for IOS devices.
The text was updated successfully, but these errors were encountered: