Skip to content
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

On iOS, navigator.mediaDevices is undefined unless page is served in a secure context, but Errors are swallowed #861

Open
pjkundert opened this issue Jun 21, 2024 · 0 comments · May be fixed by #862

Comments

@pjkundert
Copy link

OK, so part one of the issue was this:

iOS will refuse to allow Javascript code to access navigator. In RTCSession.js, when we call

return navigator.mediaDevices.getUserMedia(mediaConstraints)

the navigator.mediaDevices is undefined -- unless you're accessing the code in a "secure context": via https://... or file:https:///

This is not checked, causing an exception -- except since the exception is not thrown by the call itself, but by the code, it trickles down to the final .catch((error) =>, which neither logs nor re-throws the Error, it just swallows it.

I'll submit an Issue and a Pull for this, of course, but there are a couple of other things, too...

Originally posted by @pjkundert in #860 (comment)

@pjkundert pjkundert linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant