I am trying to develop a video conferencing application using Red5 as server and Flash and Adobe Air as the client sides. After learning how to create a simple video chat application using Flex,I am confused that how can we stream videos of many people in a conference to the same rtmp url? my rtmp url is: rtmp://localhost/MyFirstRed5Server
Now I am not being able to understand the logic here.I need different URL's for different user or I can stream all of the users' video to the same rtmp url? I am a beginner so please do not mind the ambiguities in my question and also my English. I just need some heads up. Any help will be appreciated.
No,
every user will connect to the same rtmp-url. But when you load the video you connect to another NetStream.
So the NetConnection can be shared accross all NetStreams, but of course every client in the video chat has its own stream.
You just need to make sure that sender and receivers know the name of the stream, probably you send a message over RTMP or via SharedObject about the name of the stream. You can catch the event when somebody starts to stream on Red5/Server-Side. So there is actual no need for the client to actively create a message and send something upfront. You can just listen for that event on server side and then sync to all clients (except the one that is broadcasting).
Sebastian