Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

plugins and config.xml

7 replies [Last post]

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.

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>

In player.as i have

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

it not run

Try putting gapro.accountid in quotes, ie

'gapro.accountid'

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

Perhaps accountid should be a block beneath gapro?

Anyone have any ideas?

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.

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