Page 1 of 1

Two rooms - one for A/V

Posted: 03 Aug 2011, 12:09
by omnivibe
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.

Posted: 03 Aug 2011, 12:21
by omnivibe
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


Posted: 03 Aug 2011, 12:37
by omnivibe
Actually... seems it can be done clientside in AVCastManager...

Instead of

Code: Select all

public function onRoomJoin(evt:SFSEvent):void
         // Unpublish outgoing stream
         // Unsubscribe all incoming streams
         // Re-initialize live casts list

It could be triggered manually... no?

Posted: 11 Aug 2011, 12:55
by Bax
Yes, possibly. The RedBox wasn't intended for multi-room setups, but you can modify the source code to adapt it to for need.