Go
Not registered? Sign up!

Compiling Plugins directly to player

Google Translate
6 posts | return to the Plugins forum | get the rss feed for this thread

Aug. 10, 2009Lucky

Is it possible to compile the plugins directly into the player ?

Aug. 11, 2009Zachary Ozer

Hi Lucky,

This is no problem - totally possible.

In fact, the player compiles in several plugins by default. All you need to do is add the following line:

sploader.addPlugin(new MyPlugin(),'myplugin');

to the addPlugins function of Player.as.

Check out http://developer.longtailvideo.com/trac/browser/trunk/as3/com/jeroenwijering/player/Player.as#L158.

Oct. 15, 2009Will A

Hi there,
I am also trying to compile custom plugins directly into the player but having some trouble. I'm calling sploader.addPlugin and my plugins are being loaded, flashvars get set and passed, but my plugins are not getting displayed, the code in the plugin seems to work however.

what do i need to do to get my plugins to display.

thank you guys for this really cool player

Oct. 25, 2009Zachary Ozer

Hi Will,

Hard to say.

Assuming that you're adding them in Player.as, my best guess is that you're not setting visible = true in your plugin.

Nov. 05, 2009Rob

I have the same problem, when I compile the plugin as swf and add it in the html it shows up , but when I add the .as file in the plug in folder and load it in play.as file by using the sploader function, it loads and sends the variables through http but it does not show anything on the display.

Nov. 16, 2009Zachary Ozer

Rob - you'll need to place the SWF in the same folder as the player, and add the filename to the flashvars, vis-a-vis

plugins=viral,hd,myplugin

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.