Web browser component camera/ mic permissions

18 views
Skip to first unread message

David Wafula

unread,
May 7, 2021, 7:09:13 PM5/7/21
to CodenameOne Discussions
Hi,

Am calling a webrtc enabled page that requires access to camera and mic. How do I get WebbrowserComponent to prompt the user these permissions?
Nb: I did add camera permissions in build hints but that seems to have no effect. 

Thanks. 

Shai Almog

unread,
May 8, 2021, 12:11:17 AM5/8/21
to CodenameOne Discussions
Hi,
this will be a problem. On Android webRTC might work in the browser (with said permissions) but embedded browsers don't prompt for permissions. On iOS webRTC isn't supported in the embedded browser component and needs to be used natively or with a hybrid approach. If you need webRTC in a cross platform way you'll need something like: https://github.com/shannah/WebRTC-Java-Mobile

David Wafula

unread,
May 8, 2021, 2:38:04 PM5/8/21
to CodenameOne Discussions
Thanks. I ended up using Native Interfaces so long.


--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8c4c9ea5-da1c-42ac-849a-bde4ec35b5e4n%40googlegroups.com.


--
David W
Reply all
Reply to author
Forward
0 new messages