Backstage Implementation

Greetings! I am working on adding a backstage feature to my application, similar to the one found in StreamYard. The goal is to allow presenters to be invited while a broadcast is ongoing, without them immediately appearing in the final composed video that’s being sent to platforms like YouTube or Twitch through the RTMP module. However, it’s important that the presenters are able to communicate with each other and be heard and seen by the other presenters during the broadcast.

To accomplish this, I am considering implementing two separate sessions: one for the backstage and one for the live stream. Presenters would enter the backstage session as publishers, allowing them to be seen and heard by other presenters without being included in the final video. At the same time, they would enter the live stream session as subscribers to view the composed video being sent through the RTMP module. When it’s time for them to appear in the final video, I would switch their role from publisher to subscriber in the backstage session, and from subscriber to publisher in the live stream session.

However, I’m concerned about the potential bandwidth and performance impact of this approach. Has anyone else attempted something similar, or do you have any suggestions for how I could handle this use case more effectively?

Thank you for taking the time to read this.

Your design is actually the way to go. One session for the broadcast and a different session for the backstage. You can connect your participants to any of them at any time (even at the same time), and publish/subscribe video in one or the other when needed.

1 Like