I'm trying to play an embedded video on a website within a webview but after the page loads the video player area is just a blank space. The video appears when the website is opened from a regular Chrome browser on an Android device but is blank within the app's webview. I have set android:hardwareAccelerated="true" in the manifest and below is the webview code. Anyone have any ideas why it won't appear in a webview? Thanks
WebSettings webSettings = webView.getSettings();
webSettings.setPluginState(WebSettings.PluginState.ON);
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebChromeClient(new WebChromeClient());
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
});
webView.loadUrl(selectedItem.getLink());