I’m working on a plugin that provides the MediaInputSource
Capability and trying to dynamically set the SupportedInputSources
Attribute. That is, rather than specifying the value for the Attribute in onConnect()
like most other plugins seem to do, I’m setting it in onPoll()
after querying information from the device. However, the assignment doesn’t seem to “take”/have any effect and the attribute is always empty, regardless of how I try to do the assignment (creating a new array, invoking push()
on the existing Attribute, etc).
I’ve done a fair amount of searching and while I found a suggestion from @bill a rather long while ago in a somewhat different context to update the SupportInputSources
Attribute dynamically, I haven’t found any evidence of anyone actually doing it.
Also, I don’t know if this is related, but when trying to bind SupportedInputSources
in the Designer, it doesn’t show up as an option in the drop-down list, which I also thought was odd. I suspect there may be an inter-relationship in these problems, but I even tried deleting and re-creating the plugin and it didn’t have any different behavior.