VIDEOCONFERENCE

The creation of a Video Conference system is very easy, if you have read the previous lesson. We only need to have 3 transmiter Flash movies inside the application/folder and another Flash movie having 3 Embeded Video components like 3 receivers.

The programs for the 3 transmiters are similar we have seeing in the previous lesson.

The program for the receiver is also similar, but we will put it here. Look:

stop();
client_nc=new netConnection();
client_nc.connect("rtmp://domain-name/videocon");
client_nc.onStatus = function(info){
 if(info.code=="NetConnection.Connect.Success"){
  _root.msg.text = "The connection was a success!";
 }
 else{
  _root.msg.text = "Application not available now!";
 }
}
//To receive the Station 1	 
vin1_ns=new netStream(_root.client_nc);
sin1_ns=new netStream(_root.client_nc);
Published1_video.attachVideo(vin1_ns);
vin1_ns.play("video1");
sin1_ns.play("sound1");
//To receive Station 2  
vin2_ns=new netStream(_root.client_nc);
sin2_ns=new netStream(_root.client_nc);
Published2_video.attachVideo(vin2_ns);
vin2_ns.play("video2");
 sin2_ns.play("sound2");
//To receive Station 3
vin3_ns=new netStream(_root.client_nc);
sin3_ns=new netStream(_root.client_nc);
Published3_video.attachVideo(vin3_ns);
vin3_ns.play("video3");
sin3_ns.play("sound3");

Only this.

Our demo: you can open one of the 3 stations clicking in the button. And you will see the station on the receiver.

To open more than 1 transmiter you need to have another camera or another PC accessing this page.

If you open a second transmiter having the same camera/PC you will kill the other.

THIS DEMO USE OUR FLASHCOMM SERVER. IT'S AVAILABLE ONLY A FEW HOURS EACH DAY.SORRY IF IT'S NOT AVAILABLE NOW.




PREVIOUS LESSON NEXT LESSON
T. CONTENTS HOMEPAGE