pipeToRouter needs router from another host. How to get that?

For Remote (summed up I hope):

  1. Your signal server tells media-server-1 to
    let MyPipe = await Router.createPipeTransport({ “listenIp”: “123.123.123.123”, “enableRtx”: true});
  2. You reference this transport to a server ID to clear out later but as well connect.
  3. Send signal server back the IP/Port with Server ID for reference.
  4. Signal server sends this information over to media-server-2 to then check if it had already been created the transport, and if not do so now (repeating step 1).
  5. Finish the connection with
    MyPipe.connect({ “ip”: Received.ip, “port”: Received.port });

Once their connected, it’s really about re-producing the broadcast on media-server-2 and allowing consumers to view the producer. :slight_smile:

2 Likes