Android Question Black incoming video ussing webview in WebRTC

Discussion in 'Android Questions' started by scsjc, May 12, 2019.

  1. scsjc

    scsjc Well-Known Member Licensed User

    some time ago I used this code to make a videocall using the WebRTC, and it worked perfectly.
    attached code:

    Sub Activity_Create(FirstTime As Boolean)
    Dim nameroom As String = "room1234"
    Activity.Title="" & nameroom 'addess to conect room from weburl
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result Then
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result Then
    Dim client As JavaObject
    Application.PackageName & ".main$MyChromeClient"Null)
    Dim jo As JavaObject = WebView1
    "" & nameroom)
    End If
    End If
    End Sub

    #if Java
    import android.webkit.*;
    public static class MyChromeClient extends WebChromeClient {
         public void onPermissionRequest(PermissionRequest request) {
    #End If

    I do not know if due to some update by WebRTC or the webview, but when users connect in the same VideoChat the Android terminal through webview only displays a black screen.

    Does anyone know why it may be due?
    thank you

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

  3. scsjc

    scsjc Well-Known Member Licensed User

  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