如何在phonegap中播放swf文件? [英] How to play an swf file in phonegap?

查看:191
本文介绍了如何在phonegap中播放swf文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android phonegap中开发一个flash应用程序。

I am developing a flash application in phonegap for android.

我试图将flash嵌入html但没有运气。

I have tried to embed the flash in html but of no luck. Its showing blank and nothing comes up.

然后我尝试使用childBrowser,childbrowser打开,但仍然是一个空白屏幕。

I then tried to use childBrowser, the childbrowser opens up but still a blank screen.

你能指导我怎么进行,以便我可以玩swf文件。 swf在android浏览器中正常播放,但是当我通过childBrowser打开时不播放。

Can you please guide me how should I proceed so that i can play swf file. The swf is playing fine in the android browser but it doesn't play when I open up through childBrowser.

你有什么想法吗?

提前提示

推荐答案

您可能必须为PhoneGap运行的WebView启用Flash插件in。

You may have to enable the Flash Plugin for the WebView that phonegap runs in.

您必须下载PhoneGap源代码,并使用Eclipse或您使用的任何Java环境重新编译。

You'll have to download the PhoneGap source and recompile it using Eclipse or whatever java environment you'd use.

在DroidGap#onCreate添加行以激活插件:

In DroidGap#onCreate add the lines to activate plugins:

   WebSettings settings = appView.getSettings();
   settings.setPluginState(PluginState.ON); // Turn Flash plugin on

Phonegap不正式支持,因为苹果不支持Flash。此外,Adobe已经宣布Adobe将在手机上使用HTML5,而不是在手机上进一步投资Flash。

Phonegap doesn't support this officially as Apple does not support Flash. Furthermore it has been announced that Adobe is going for HTML5 in phones and not investing further into Flash on mobile.

类似的问题在这里: phonegap的Flash插件

Google论坛主题: https://groups.google.com/forum/#!topic/phonegap/s3xZ8qxTL-M

Google Group topic: https://groups.google.com/forum/#!topic/phonegap/s3xZ8qxTL-M

这篇关于如何在phonegap中播放swf文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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