flash plugin for phonegap

后端 未结 2 990
夕颜
夕颜 2021-01-17 01:44

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

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 02:45

    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 
    

    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!

    Check out this link for details:

    http://groups.google.com/group/phonegap/browse_thread/thread/b37c59f2ac532fe3/d5121817269e1ae1?lnk=gst&q=flash#d5121817269e1ae1

提交回复
热议问题