I want to use one port to send all devcies custom metadata.So, i can create one MediaProviderService object, and add all device to HardwareDefinition before MediaProviderService.Init.When I add a new device to get metadata, and i don’t want to create new MediaProviderService,How can i do?
You can create many channels on the same TCP port. Check out the MultiChannelMetadataProvider sample, as it exposes 3 channels on the same TCP port.
Yeah, I can create many channels on the same TCP port. But I must create before MediaProviderService init. After Start this TCP port, How can I change channel’s status? Like,I want to add a new channel after start TCP port. I must close the TCP port and add this new channel to the list,and create the TCP port again. Is there any function to add a new channel dynamically?
This is correct. But as you add more channels, your service will look like a changed ‘hardware’ - and the administrator will have to ‘replace’ the existing hardware with itself!
Consider what makes best sense from the administrator point of view - many ports on one hardware, or one port on many hardware.