I would love if I could createPipeTransport synchronously and immediately afterwards take both the broadcasts and viewers and pre-consume/produce before connection takes place.
So…
- Broadcast produces stream to producer server
- Producer server on connected stream will announce audio/video/both for viewers
- Viewer will request access to broadcast but first if no connection, createPipeTransport is sent to both producer/consumer server selected.
- Second is the request to re-consume the broadcast on producer server to re-produce it on the consumer server.
- Viewer will consume the consumer’s re-produced copy of the broadcast
- Some where by now the server may connect its PipeTransport and the Broadcast/Viewer should be connected.
Above would be ideal but I understand if not possible. I currently await the PipeTransport before re-consuming/re-producing but this can require more error handling than above solution that would be able to pass along the streams in the future based on “trust” not promise.
Thanks.