PDA

View Full Version : MediaBridge Custom Command Method?



iolaus
March 20th, 2009, 01:34 PM
Would it be possible to add a custom command method to the MediaBridge SDK? Perhaps something on the Zone like:

public string CustomCommand(string commandName, string payload)

This would allow me to do a lot more with a MediaBridge Plug-In without having to dive into a full-blown NR Plug-In.

I've read a little bit about this type of functionality from the NR design side but it doesn't seem to be documented at all in the MediaBridge SDK.

Rob H
March 20th, 2009, 02:08 PM
I'm not clear what you want to achieve with this.

Does the Generic Mediabridge command (action 2, 255) not do what you want?

In a MediaBridge plugin you need to implement the ICustomHandler interface in your plugin instance.

iolaus
March 20th, 2009, 02:29 PM
In a MediaBridge plugin you need to implement the ICustomHandler interface in your plugin instance.

Rob,

I think that is exactly what I need. Is there any way for the handler to return a value?

Thanks.

Rob H
March 20th, 2009, 03:09 PM
Not synchronously, no.

But you can send back a 'V' response that will set a variable to a value