This answer may be an archive for researchers.
First suggestion or solution (multicast router)
You can use Router or L3 Switch, which supports IGMP protocol. This router or L3 switch must support IGMP, which can structure the multicast IP address. You can configure L3 to switch the entire streaming. The multicast IP address ranges from 224.0.0.0 to 239.255.255.255 and works based on the device’s MAC address. You can create a different multicast IP address for different types of switching scenarios. After completing the configuration of the router or L3 switch, you change the IP address only to switch streaming to your program. (I did not mention broadcasting. Broadcasting to all points. Multicasting data at specific points.)

Second sentence or solution (programming)
I use the Vlc.Dotnet shell to use the Vlc and libvlc libraries. It is open source. RTSP streaming is based on IP address and port number. I don’t know any open source switch, but you can write one of them for you using the Vlc.dotnet shell. You create 5 streaming servers and 1 management server. The destination destination of the streaming server must be the IP address of the management server. and you can manage all the data from the management server using your basic switch program.
5 streaming servers: sends data to the management server
1 Management Server: Management and Switching Data
I prefer to use Router or L3 Switch for this. Because it is easier.
source share