Loading custom plugins

Dec 17, 2010 at 2:03 PM

I can't seem to find it in the documentation, but how does one load custom plugins?

I've packaged a custom logwriter into a .xap file, and used the BeginAddExternalPlugins, but it does not seem to add the LogWriter contained in the .xap.

Should i instead load the plugins dlls and use AddPluginsCatalog? Should i also set the .LogWriters on the player?

What about other plugins, besides logwriters?


- Loke

Jan 24, 2011 at 7:11 AM

in order to add a log writer you also need to add two properties to the player

 player.LogLevel = PlayerVersion.PlayerLogLevel;
player.LogWriters = "Debug,Console";

Logwriters will be: all the log writers names separated by a column
Generic plugin will auto load .
MediaPlugin will load based on the curent play list item MediaPluginRequiredMetadata
for more on plugin development see HERE

Jan 24, 2011 at 8:27 AM

Hi shrik

Thanks, it was the player.LogWriters bit i couldn't get right. I tried instead using the SelectLogWriter function.

- Loke