AndroidEnthusiastic
AndroidEnthusiastic

Reputation: 931

flash plugin for phonegap

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.

Upvotes: 0

Views: 6183

Answers (2)

gaurav_gupta
gaurav_gupta

Reputation: 61

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

}

Upvotes: 0

davejohnson
davejohnson

Reputation: 1447

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

Upvotes: 1

Related Questions