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

[Documentation] Camera and Mic access - Darwin #3735

Open
leaanthony opened this issue Sep 8, 2024 · 0 comments
Open

[Documentation] Camera and Mic access - Darwin #3735

leaanthony opened this issue Sep 8, 2024 · 0 comments

Comments

@leaanthony
Copy link
Member

My Wails apps need microphone access and days ago it work perfectly normal without any config, today it can't get access to navigator.mediaDevices saying it's undefined.

I'm on MacOS, seems like adding this to Info.plist and Info.dev.plist between <dict> </dict> solves it

<key>NSMicrophoneUsageDescription</key>
<string>This app requires access to the microphone</string>

If you need camera access in your wails app and it keep saying navigator.mediaDevices is undefined, try using this:

<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera</string>

Originally posted by @madeindra in #883 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant