branchseer / DeskGap

A cross-platform desktop app framework based on Node.js and the system webview
https://deskgap.com/
MIT License
1.83k stars 75 forks source link

[Question] Permissions #26

Open Armaldio opened 5 years ago

Armaldio commented 5 years ago

How are permissions supposed to work ?

I've tried requesting microphone access, but with no success.

andymans commented 5 years ago

Are you on a Mac? If so you cannot access either the camera or the microphone. This is because DeskGap is using the native installed webview (WkWebView) provided by the oS. Unfortunately, when running embedded, WkWebView's getUserMedia functionality is disabled. This cannot be changed. I've found 2 workarounds (neither very pretty):

a) Shell out to your browser, and host your WebRTC call there. b) Use Flash to gain the media access and handle your call within a swf that you load into your page.

Armaldio commented 5 years ago

No, I'm on windows 10

I don't really need it. It's just for information