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

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

问题描述

我正在 phonegap 中为 android 开发一个 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,子浏览器打开但仍然是一个空白屏幕.

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 插件.

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 不正式支持此功能,因为 Apple 不支持 Flash.此外,已经宣布 Adob​​e 将在手机中使用 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天全站免登陆