You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
When I'm trying to load the example I see the error:
WebRTC Issue-!
navigator.mediaDevice not present in your browser.
I had no this error 2 weeks ago.
OS: iOS 12.0.1 (16A404)
Brower: Safari
Hi
@janpio
, searching a little bit on the web, I found that mediaDevices is fully supported on iOS from 11+.
So, if iOS is 11+, Safari (instead of Chrome that not asks every time for camera permissions) will ask the user for camera usage at EVERY refresh of the app. If not, try to clear Safari cache.
That error, anyway, could mean two things: mediadevices is not supported or you have previously denied accesso to that website for your camera. :)
This is the same issue as
#476
.
From your screenshot, I see the back button in the top left corner, which means that the page is open in an embedded WKWebView inside of another app, and is not actually full Safari. You'll need to open the page with the regular Safari app.
For a full explanation see
this comment
.
Just in case it's helpful to anyone I was getting this same error when trying to run an example from my phone (Chrome) from my IP. I was getting this error and there was no prompt to give camera permissions.
Apparently, Chrome won't ask for permissions when running a site from
http
so I solved this problem by running my example from ngrok using
https
. Works now.
fmagno, jazzyjube, SrPanquesito, cwbsl, AliHammoud, zestiros, hanwin, NicolasRabrenovic, mafster, xordion, and 52 more reacted with thumbs up emoji
GregLMcDonald, aminimalanimal, bernatbombi, alexanderpavlovru, eldur1, paulhernandez-autocom, Dehayez, Tzikas, ArianeDubois, and hosseintaromi reacted with hooray emoji
eldur1, Dehayez, Tzikas, clauvm, LorenzoVRTech, perunpro, and GithubXoc reacted with heart emoji
AliHammoud, mafster, GregLMcDonald, aminimalanimal, mtm-hninwaiwaiaung, alexanderpavlovru, eldur1, mattiabaldari, Dehayez, Tzikas, and 3 more reacted with rocket emoji
All reactions
Just in case it's helpful to anyone I was getting this same error when trying to run an example from my phone (Chrome) from my IP. I was getting this error and there was no prompt to give camera permissions.
Apparently, Chrome won't ask for permissions when running a site from
http
so I solved this problem by running my example from ngrok using
https
. Works now.
That solved my problem, thanks
@keyserfaty
!
I'm having the same issue on Chrome on the latest generation of iPhones.
Works on Pixel 3 (Android 10) and older iPhones and iPads on both pre and post iOS13 versions.
Running the demo over https but get WebRTC issue-! on new iPhones. Could this be hardware related?
Change the file protocol to https:// or something secure. This is because of the new updates from google chrome. I found this to work for me. Just basically adding https:// to the beginning of my link
Worked for me too.
If anyone having problem running on iOS (through app, in my case - ionic app), please add below description in your Info.plist.
NSCameraUsageDescription (Privacy - Camera Usage Description)
NSPhotoLibraryAddUsageDescription (Privacy - Photo Library Additions Usage Description)
NSPhotoLibraryUsageDescription (Privacy - Photo Library Usage Description)
I was using python http.server to serve the local website.
Thanks to the pointers in the above comments about https, I served the same local website using ngrok and it all worked.
Thanks folks !