flash插件phonegap [英] flash plugin for phonegap
问题描述
我在html,css,javascript在phonegap开发一个应用程序。在这个应用程序中,我需要一个Flash插件编码的javascript来启用音频/视频的我的应用程序的目的,如果任何人知道的解决方案,请尽快回复我。
I am developing one application in html,css,javascript in phonegap. in that application i need a flash plugin coding for javascript to enable audio/video for my application purpose if anybody know the solution please get back to me as soon as possible.
推荐答案
您必须覆盖扩展DroidGap的Java类中的onCreate方法,并在其中加入如下内容:
You would have to override the onCreate method in your Java class that extends DroidGap and put something like this in there:
WebSettings settings = appView.getSettings();
settings.setPluginState(PluginState.ON); // Turn Flash plugin on
不完全确定这是否可以在你的类中扩展DroidGap,如果你编辑DroidGap.java源码,它肯定可以做到!
Not exactly sure if this can be done in your class that extends DroidGap but it can definitely be done if you edit the DroidGap.java source!
查看这个链接:
这篇关于flash插件phonegap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!