title: Receiving Kurento Media Server stream in Android WebView
body: <p>I am trying the Kurento <em>one to many</em> video call example (<a href="https://www.kurento.org/docs/5.1.1/tutorials/node/tutorial-3-one2many.html" rel="nofollow noreferrer">this one</a>) where a Raspberry Pi sends a stream to the KMS using uv4l. I am trying to view the stream on an Android app using a WebView. I used a custom WebViewClient to avoid the SSL certificate error. However, when the hardware acceleration is enabled, a green rectangle is displayed instead of the video, and when the acceleration is disabled, a spinning wheel is displayed. However, the audio is received correctly.</p>
  <p>Logcat displays the following messages:</p>
  <blockquote>
  <p>[WARNING:webrtcsession.cc(1719)] Candidate has unknown component: Cand[1:2:udp:2013266430:IP:PORT:local::0::] for content: audio</p>
  <p>[WARNING:srtpfilter.cc(585)] Failed to unprotect SRTP packet, err=9</p>
  <p>[ERROR:channel.cc(666)] Failed to unprotect video RTP packet:
  size=1133, seqnum=23250, SSRC=1884862060</p>
  </blockquote>
  <p>The code I use for the WebView is the following.</p>
  <pre><code>    WebView displayWebView = (WebView) rootView.findViewById(R.id.displayWebView);
      WebSettings webSettings = displayWebView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webSettings.setUseWideViewPort(true);
      webSettings.setLoadWithOverviewMode(true);
  
      displayWebView.setWebViewClient(new CustomWebViewClient());
  
      displayWebView.loadUrl(&quot;https://IP:PORT/&quot;); 
  </code></pre>
  <p>The code for CustomWebViewClient is the following.</p>
  <pre><code>private class CustomWebViewClient extends WebViewClient {
  
      @Override
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
          view.loadUrl(url);
          return true;
      }
  
      @Override
      public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
          Log.d(TAG, &quot;Ignoring SSL certificate error...&quot;);
          handler.proceed();
      }
  }
  </code></pre>
  <p>I tested the app on phones running Lollipop. I guess it is something related to the WebView. Any help?</p>