Go
Not registered? Sign up!

plugins and config.xml

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

Mar. 31, 2009PHXMedia

Can plugins be placed in a config.xml file? I would like to use the Google Analytics plugin. Can I just put the following code into my xml file?

<plugins>googlytics-1</plugins>

If yes, what if I want to add multiple plugins? How would the code change?

Thank you.

May. 02, 2009kevin

That should work. With multiple plugins handled like this:

<plugins>googlytics-1,embed-1</plugins>
<embed.code>Just an example of a plugin-specific config tag</embed.code>

Sep. 24, 2009Mr Ha

In player.as i have

plugins:'gapro-1',
gapro.accountid:'xxx',

it not run

Sep. 25, 2009Zachary Ozer

Try putting gapro.accountid in quotes, ie

'gapro.accountid'

Nov. 01, 2009Dan

Does anyone have a working example for the embed with the config.xml?

This finds the plugin but doesn't record any events:

<plugins>gapro-1.swf</plugins>
<gapro.accountid>UA-XXXXX-1</gapro.accountid>


I got the flashvars version working fine:
flashvars.plugins = "http://plugins.longtailvideo.com/gapro-1.swf"
flashvars[gapro.accountid] = "UA-XXXXX-1";


Thanks

Nov. 07, 2009Alain-Christian

Perhaps accountid should be a block beneath gapro?

Anyone have any ideas?

Nov. 08, 2009Alain-Christian

After working with config.xml (or WHATEVER you choose to name it) I've found that it works fine when you use it the way in your example, Dan.

It's possible that the plugin itself doesn't know how to pull flashvars from the XML file. Try it with other plugins that are easy to test and you'll see it works fine.

Also, make sure you aren't using the same flashvars in your embed code as you're using in your xml file. Use one or the other but not both simultaneously.

Nov. 16, 2009Zachary Ozer

The player should pull flashvars from both the config.xml and page flashvars, with the later getting priority over the former.

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.