So I am learning to develop a video chat with multirooms/groups and I know basically what to do for a simple live video chat application. For example:
public function setupconnection ()
{
youRtmp ="the URL for your rtmp";
nc=new NetConnection();
nc.connect (rtmpNow);
nc.addEventListener (NetStatusEvent.NET_STATUS,ConnectCheckFunction);
SetUpCameraFunction();
SetUpMicrophoneFunction();
SetUpVideoFunction();
}
//ConnectCheckFunction
//SetUpCameraFunction
//SetUpMicrophoneFunction
//SetUpVideoFunction
All things being equal this should give me a simple two way chat. Now I want to extend this to multirooms. One thing comes to mind: create a new folder for each group and point youRtmp there so that technically you have a new application/room each time and different groups connected to different folders will see different video chat feeds. But this would be inefficient since I would have to create a new folder for each group this can be serious problem when the number of groups are very large. (The application is PHP and flash and so when a new group is created in the DB using PHP and MySQL I would go on and create a folder that would be used as stated herewith for live video chat.) What is a more efficient way to do this? Is there a tutorial well written and tested that I could read for ideas to accomplish this? Any help would be greatly appreciated.