Domanda

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());
È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top