I'm developing an app that uses WebView
(in a fragment) to load a YouTube page. But the page only plays audio, no video. Strange thing is that after clicking the HOME button then click the icon on the desktop to return to the app, the video plays fine. Other than that, no video only audio. The app works fine on normal Android devices, this BUG only happens on Kindle Fire tablet devices.
hardware accelerate is ON.
Here is the WebView
settings:
WebSettings webSettings = this.webView.getSettings();
webSettings.setJavaScriptEnabled(true);
this.webView.setOverScrollMode(WebView.OVER_SCROLL_IF_CONTENT_SCROLLS);
this.webView.setWebViewClient(this.webViewClient);
this.webView.setWebChromeClient(this.webView.getWebChromeClient());
webView.setLayerType(WebView.LAYER_TYPE_HARDWARE, null);