-
Notifications
You must be signed in to change notification settings - Fork 848
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
TypeError navigator.mediaDevices is undefined, at shimGetUserMedia #1022
Comments
is the only |
|
I checked http and there adapters browser detection for Firefox is broken even. Whoops... relies on mozGetUserMedia. Maybe better to rely on mozRTCPeerConnection instead? |
I think shimGetUserMedia should simply check for mediaDevices in navigator and if its not there return. |
oh hold on. The error is inside this block:
so how can it throw? |
|
No, we're likely to deprecate mozRTCPeerConnection before we deprecate mozGetUserMedia. They may both go away eventually though. |
I was having this error due to my app being exposed on HTTP (instead of HTTPS). Does someone agree that we should polyfill this with Promise rejections? Or is it too much out of scope? 🤔 Just having it undefined is weird! |
that would break feature detection - if it was a good idea then the browser vendors would have done it. |
Unable to connect to Room: getUserMedia is not supported |
getUserMedia has not been supported on HTTP for a while with the exception of localhost since 2015: |
I don't user adapter.js. However, I stumbled uppon this issue while googling about a similar issue I have and I can't figure out why this happens (I don't expect you to solve mine, I just provide some information that seems useful for you). I am 100% sure that it happens on https URL as we only serve https.
|
that sounds like chrome on ios which, being wkwebview-based didn't have getUserMedia. |
Yes you are right sorry for the noise... and thank you very much for your answer |
…ined since this can't work. Tentative fix for #1022
Please read first!
Please use discuss-webrtc for general technical discussions and questions.
Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.
Versions affected
Browser name:
Chrome Version:75.0.3770 and others, probably spoofed
adapter.js
7.5.0
Description
TypeError navigator.mediaDevices is undefined
I using sentry for handling errors:
Steps to reproduce
Is happened on real traffic
Expected results
No errors
Actual results
TypeError navigator.mediaDevices is undefined
Script stopped working because import error
The text was updated successfully, but these errors were encountered: