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

Always allow media capture in frontend #1850

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Conversation

zacwest
Copy link
Member

@zacwest zacwest commented Sep 21, 2021

Fixes #1671.

Summary

Always allows access to to the camera and microphone via navigator.mediaDevices.getUserMedia.

Any other notes

Since this is gated on the app-level system permission for Camera and Microphone, it feels silly to require the user to allow access to them during the normal app runtime - this is exclusively a weird WebView behavior-ism. Also doesn't feel worth making this a preference - if users don't want the frontend to access it, it seems to me like the app-level permission is enough.

Tested this by using e.g. the WebRTC samples: going to a video or audio or both test page, after granting app permission, successfully starts right away.

@zacwest zacwest merged commit b422ffa into master Sep 21, 2021
@zacwest zacwest deleted the media-capture-permission branch September 21, 2021 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS 15] Add support for new delegate WKUIDelegate decideMediaCapturePermissionFor
2 participants