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

Post Reply
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Two rooms - one for A/V

Post 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.
omnivibe
Posts: 91
Joined: 05 Oct 2010, 09:23
Contact:

Post 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

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

Post 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
			unpublishLiveCast();
			
			// Unsubscribe all incoming streams
			unsubscribeAllLiveCasts();
			
			// Re-initialize live casts list
			initCastList();
		}
It could be triggered manually... no?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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.
Paolo Bax
The SmartFoxServer Team
Post Reply