Flash视频没有为Android 3.0.1显示中的WebView [英] Flash video not displaying in WebView for Android 3.0.1

查看:136
本文介绍了Flash视频没有为Android 3.0.1显示中的WebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的WebView来显示与Flash(中的Adobe Flash网站)网站 - 上运行的是Android 3.0.1最新发布的Flash 10.2 Xoom平板电脑测试

I have a simple WebView to display a website with Flash (the Adobe Flash website) -- testing on a Xoom tablet running Android 3.0.1 with newly released Flash 10.2

在谈到每一个问题上的计算器,我给自己定了以下内容:

After referring to every question on stackoverflow, I've set the following:

mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
mWebView.loadUrl("http://www.adobe.com/software/flash/about/");

两个插件的JavaScript 使用的getSettings(启用了web视图),但闪光未能露面。当我将 setPluginState ON_DEMAND ,它显示了正确的占位符闪光 - 又一次,当我点击闪光的地方应该是这个项目时,闪光消失(仿佛Flash视频失败来呈现),并只在音频(取决于Flash内容)可以被听到。

Both Plugins and JavaScript are enabled for the WebView using getSettings(), yet Flash fails to show up. When I set setPluginState to ON_DEMAND, it shows the correct placeholder for Flash -- yet again, when I tap the item where Flash should be, the Flash disappears (as if the Flash video is failing to render) and only the audio (depending on the Flash content) can be heard.

我也注意到,我可以利用丢失的闪存,做一个长期持有轻按,然后轻按左上方,其中新的Flash全屏按钮的应该是,它会再正确地显示在全屏模式。但是,当我回落到web视图,它再次未能显示出来,并只播放音频。

I've also noticed that I can tap the missing Flash, do a long-hold tap, then tap the top left where the new Flash 'Fullscreen' button SHOULD be and it'll then show up correctly in Fullscreen mode. But when I fall back to the WebView, it again fails to show up and only plays the audio.

任何的想法是AP preciated!请不要只是指我回来的东西贴个月前如果没有一些细节,为什么我指的是后几个月的Andr​​oid 3.0版本之前!再次感谢您的帮助。大社区!

Any thoughts are appreciated! Please don't just refer me back to something posted months ago without some details on why I'm referring to a post months before the Android 3.0 release! Thanks again for any help. Great community!

推荐答案

因此​​,一个星期和搜索高低,尝试不同的技术,刚想靠近准备把我的平板电脑窗外半+后,我终于想通它 - 我心里很不是滋味是多么容易修复;还是那句话,我是!

So after a week and a half+ of searching high and low, trying different techniques, and just about near ready to throw my tablet out the window, I finally figured it out -- and I'm not too happy how EASY it was to fix; then again, I am!

请记住,这是指向的Flash视频无法加载到我的Xoom的Andr​​oid 3.0.1平板电脑PluginState打开web视图的问题。阅读我的问题,然后回答。尽情享受吧!

Remember, this was directed toward the ISSUE of Flash video not loading into the WebView on my Xoom Android 3.0.1 tablet with PluginState ON. Read my question and then the answer. Enjoy!

步骤1:只需在您的应用程序将其添加到标记清单XML

Step 1: Simply add this to the tag under your Applications Manifest XML

android:hardwareAccelerated="true"

步骤2:加载您的应用程序,享受您的支持Flash的WebView

Step 2: Load up your app and enjoy your Flash enabled WebView!

祝你好运!

这篇关于Flash视频没有为Android 3.0.1显示中的WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆