Android Question WebRtc and WebView

Discussion in 'Android Questions' started by Marcos Alves, Oct 23, 2018.

  1. Marcos Alves

    Marcos Alves Active 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!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Attached Files:

    Marcos Alves likes this.
  3. Marcos Alves

    Marcos Alves Active Member Licensed User

  4. Erel

    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.
     
  5. Marcos Alves

    Marcos Alves Active Member Licensed User

    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?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    You should start a new thread for a new question.
     
    Marcos Alves likes this.
  7. KingEdem

    KingEdem Member Licensed User

    I am getting error while compiling WebRTC:

    Generating R file. Error
    invalid resource directory name: D:\WebRTC\B4A Samples\Objects\bin\extra\res1\res/values-b+sr+Latn
     
  8. DonManfred

    DonManfred Expert Licensed User

    You should never post in an existing thread. Always start a new thread for your question.
     
  9. deantangNYP

    deantangNYP Active Member Licensed User

    got this error when i select [start] in the app. What does it mean?
    Thanks
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice