Android Question WebRtc and WebView

Marcos Alves

Well-Known Member
Licensed User
Hello all,

this thread was suggested by @Erel , after fixed a https problem in a webview in this https://www.b4x.com/android/forum/threads/problem-with-https-and-webview.98535/#post-620911 ...

Ok, let's go: I'm trying to open a site similar to this: https://rtcmulticonnection.herokuapp.com/demos/Video-Conferencing.html ... in a webview.

But when clicking the "open room" button in the webview there is no result, besides this woks fine in smartphone browser. I thought that WebView behavior was something similar to a embedded browser in an app, but it looks that there are some limitations.
If I could run this site would get at least a great advantage of reusing the same code for web and app... could anybody help me?

Thanks!
 

Erel

Administrator
Staff member
Licensed User
Test it with other WebRTC servers. Hopefully they will provide more information.

Make sure to monitor the unfiltered logs.
 

Marcos Alves

Well-Known Member
Licensed User
Test it with other WebRTC servers. Hopefully they will provide more information.

Make sure to monitor the unfiltered logs.
Thanks @Erel . I noticed that the problem was in javascript: something that runs on mobile browser doesn't in webview, I didn't find exactly what but I wrote a new JS and worked! A good tool in this situations could be a way to debug js in webview: is there some?
 
Top