Receiving Multiple Streams but Broadcasting One

I am trying to set up my application to receive multiple input streams into a "station". I then select which stream I want to broadcast so that viewers can subscribe to it. It's kind of like a television studio with multiple cameras and you get to choose which camera angle the viewers see.

ANSWER:

This example implements a "Station" style application where several publishers stream to a station, but only one selected stream gets pushed out to subscribers. Please note this was not tested thoroughly and is meant to serve as an example of how this function could be implemented so it might take some modification to get it to work with your setup.