I want to play a .flv video in a webview but it did not work. I enabled plugins and JavaScript, set android:hardwareAccelerated="true". In webview there is the blue rock beause of the missing Flash plugin... Can anyone help me. thanks in advance

webView = (WebView)findViewById(R.id.webView1);

webView.getSettings().setJavaScriptEnabled(true);

webView.getSettings().setAllowFileAccess(true);

webView.getSettings().setPluginState(PluginState.ON);

//load vidoe into WebView

webView.loadUrl(Uri.fromFile(flvHtml).toString());
有帮助吗?

解决方案

Flash content wont play in Andriod, at least on higher versions since Adobe has stopped the support for it. On lower version devices, you can insatll Flash Player from their archives and it will play. This was my question yesterday.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top