flash plugin for phonegap

后端 未结 2 939
夕颜
夕颜 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:43

    I have tried this and it is working perfectly fine in my android app. I have embed flash site inside cordova app.

    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);    
        super.init();
        super.appView.getSettings().setPluginState(PluginState.ON);
        super.loadUrl("http://bezalelgreenarts.com/");//flash based site
    
    }
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题