First, some details to help explain:
If you download a Vimeo link, for example the following:
http://player.vimeo.com/video/40234826 , or use their iframe embed code,
in WebView, one of two things will happen.
- If an Adobe Flash Player application / plugin is installed on the device, it will display the built-in Vimeo player. Clicking on playback, playing the video as an embed.
- If the device does not have a Flash plugin, an image with a play button will be displayed on it. By clicking the "Play" button, the video in the VideoView system opens. (Because the button refers to the mp4 file.)
Since the built-in game in Vimeo can get a little messy on the many available devices, I found that option 2, playing Vimeo video in the Android multimedia player, is much better.
Now the question is, how can I convince WebView not to use Flash?
I tried webview.getSettings().setPluginsEnabled(false);, but it is still loading the built-in flash version. How can I trick a Vimeo player into thinking that there is no flash installed on the device?
thank
Update
After further research, it seems to setPluginState(PluginState.OFF)work before cellular, but it does not work on Honeycomb and ICS.
source
share