Force a restart of the camera stream

Hi,

What is the best/generic way (programmatically) to make the recording server reconnect the media streams from a device?

Normally you just change some stream property and change it back to get the recording server to reconnect the stream.

In my specific case I like to reconnect the metadata stream(s).

There is no good way. You can disable and then enable the device. This comes with the side effect that for a short while, being disabled and not yet enabled, the device will be removed from the configuration.