Two rooms - one for A/V

Post your questions and bug-reports about our audio/video streaming add-on based on Red5 Server.

Moderators: Lapo, Bax

User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Two rooms - one for A/V

Postby omnivibe » 03 Aug 2011, 12:09

I have a setup where there are two simultaneous rooms where 4 people can be at a time...

1 - Lobby, for generic communication and message commands (such as which game to switch to, perhaps text, etc.)
2 - Individual rooms which can load custom extensions for games

Ideally- the RedBox extension would be triggered when joining the lobby, and then the users can communicate about which game they want to play- and they can join the game room while still maintaining the a/v communication of lobby.

But I'm finding that joining a second room, in addition to the first, is destroying the AV connection even though unpublishLiveCast was never called.
User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Postby omnivibe » 03 Aug 2011, 12:21

Maybe there could be a toggle in the properties - "autoStart"

If set to 0, then a session must be started manually by sending an ExtensionRequest

?
User avatar
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Postby omnivibe » 03 Aug 2011, 12:37

Actually... seems it can be done clientside in AVCastManager...

Instead of

Code: Select all

public function onRoomJoin(evt:SFSEvent):void
      {
         // Unpublish outgoing stream
         unpublishLiveCast();
         
         // Unsubscribe all incoming streams
         unsubscribeAllLiveCasts();
         
         // Re-initialize live casts list
         initCastList();
      }


It could be triggered manually... no?
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 11 Aug 2011, 12:55

Yes, possibly. The RedBox wasn't intended for multi-room setups, but you can modify the source code to adapt it to for need.
Paolo Bax
The SmartFoxServer Team

Return to “RedBox 2X”

Who is online

Users browsing this forum: No registered users and 2 guests