Question

I have a WebView based application where I want to display a video which is inside a video tag like this:

<video src="https://video.mp4" controls="controls" type="video/mp4"></video>

I want to display the video inline (not fullscreen) and like the documentation says I have hardware acceleration turned on, and set a WebChromeClient.

The thing is when I replace the url from https to http it works and I can see the video correctly, but doesn't work with https.

Is https supported by the media player? Any thoughts on this? Thanks.

Was it helpful?

Solution

Have you tried setting a WebViewClient

myWebView.setWebViewClient(new WebViewClient() {
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler,
        SslError error) {
      handler.proceed();
    super.onReceivedSslError(view, handler, error);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top