Why I am getting permission denied error while using WebRTC

416 views
Skip to first unread message

eth4kr

unread,
Feb 1, 2018, 12:39:11 AM2/1/18
to DroidScript
Hey guys, While using WebRTC JavaScript API, I am getting permission denied error, can any body tell me the fix of this error?

I tried both, loading into HTML as well as, directly to the JS app.

Steve Garman

unread,
Feb 1, 2018, 1:02:11 AM2/1/18
to DroidScript
Have you tried using a WebView created with the "AllowCapture" option?

eth4kr

unread,
Feb 1, 2018, 1:59:57 AM2/1/18
to DroidScript
Nope, I didn't, I am going to try that.
Thanks for your answer, hope it will work

eth4kr

unread,
Feb 1, 2018, 2:04:28 AM2/1/18
to DroidScript
Damn, It didn't worked.. :'(

what to do now?

eth4kr

unread,
Feb 1, 2018, 2:05:59 AM2/1/18
to DroidScript
Auto Generated Inline Image 1

eth4kr

unread,
Feb 1, 2018, 2:07:37 AM2/1/18
to DroidScript


Despite using AllowCapture option, I am getting that error

Auto Generated Inline Image 1

eth4kr

unread,
Feb 1, 2018, 2:29:50 AM2/1/18
to DroidScript
Can  anyone help me?? Did anyone tried WebRTC on DroidScript?

Dave Smart

unread,
Feb 1, 2018, 11:43:37 AM2/1/18
to DroidScript
WebRTC definitely works in DroidScript... the droidscript team built a WebRTC system for face to face secure video conferencing last year for a commercial customer (that's how we mostly fund droidscript.org)

Are you using a WebView?

Dave Smart

unread,
Feb 1, 2018, 11:51:04 AM2/1/18
to DroidScript
Try putting the following line at the top of your main js file:-

_AddPermissions("Camera")

and make sure you are using a WebView with the 'AllowCapture' option set.

ansari_abdullah

unread,
Feb 4, 2018, 1:14:15 AM2/4/18
to DroidScript
I am actually trying to capture audio (audio calling) using WebRTC and yea I have given AllowCapture option to the webview (you can see in screen shot)

ansari_abdullah

unread,
Feb 4, 2018, 1:27:01 AM2/4/18
to DroidScript
Can you please send me a sample of WebRTC for DroidScript?

Dave Smart

unread,
Feb 5, 2018, 7:24:51 AM2/5/18
to DroidScript
If you are recording audio, then you need to add the following permission too:-

_AddPermissions("Record")


Syed Munawer Hassan

unread,
Jun 19, 2020, 7:22:27 AM6/19/20
to DroidScript
Can you please make this plugin for premium users or @ some fee ?
Reply all
Reply to author
Forward
0 new messages