0

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());
PCoder
  • 2,165
  • 3
  • 23
  • 32
user3577087
  • 55
  • 1
  • 3

1 Answers1

0

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.

Community
  • 1
  • 1
Diffy
  • 2,339
  • 3
  • 25
  • 47
  • Now I compiled my app with Android API 7 Android 2.1 and tested it on genymotion emulator runnig Android 2.3.7 but flash still did not work... I do not know why, any idea? – user3577087 Apr 28 '14 at 15:20
  • Now do u have flash on your emulator?. Its better if u test it on a device with falsh installed – Diffy Apr 28 '14 at 18:49
  • I compiled it as Android 2.1 and tested it at HTC Desire running Android 2.3.7, still not work... here some screenshots [here](http://www.directupload.net/file/d/3606/jlyyd5bu_png.htm) and [here](http://www.directupload.net/file/d/3606/jc2k75hi_png.htm) any idea why it does not work? do you have a sample code to check if the mistake is because of code? – user3577087 Apr 28 '14 at 21:50