Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1854

Android: Video streaming in WebView not working on certain devices (Yacine TV APK)

$
0
0

I am developing an Android app similar to Yacine TV that streams video content using a WebView. However, on some devices running Android 12 and 13, the video player shows a black screen while the audio continues to play.

Here is a simplified version of my code:

WebView webView = findViewById(R.id.webView);webView.getSettings().setJavaScriptEnabled(true);webView.getSettings().setDomStorageEnabled(true);webView.loadUrl("https://example.com/stream-url");

I have also tested using setMediaPlaybackRequiresUserGesture(false), but the issue persists.

Steps to reproduce:

  1. Install APK (add link here if necessary for reproduction).

  2. Open any live stream.

  3. On certain devices, the video fails to render.

What could cause WebView to fail to render video on newer Android versions, and how can I fix it?

Things I have tried:

  • Enabling hardware acceleration

  • Testing different WebView versions

  • Using ExoPlayer instead of WebView

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 1854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>