streaming - Red5 video chat tutorial AS3 -


where can find working examples of video chat application based on as3 , red5? i'm having trouble understand how attach user stream user , vice-versa. can point simple example or provider sample code?

here link simplechat demo project red5: http://www.red5.org/downloads/simpledemos/

anyway give basic concept: assuming have chat application, have single id each user, right? lets suppose scenario user a start streaming mic/cam user b:

//start streaming mic , camera nspub = new netstream ( netconnection ); nspub.attachaudio(microphone.getmicrophone()); nspub.attachcamera(camera.getcamera()); nspub.publish('a');  //need send command user b notify him user started streaming,  //this command can sent sharedobject or invoking remote method,  //invoke client method in b  //code receive mic/cam streaming user nscli = new netstream ( netconnection ); videocompoment.attachnetstream( nscli ); nscli.play('a'); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -