yep here is the code to add in the main movie, on the frame labelled main:
function pubLive()
{
myCam = Camera.get()
myCam.setQuality(8192,80);
myCam.setMode("160", "120", "4");
srcStream = new NetStream(client_nc);
srcStream.publish(_root.exp, "live");
srcStream.attachVideo(myCam);
my_video2.attachVideo(myCam);
//myMic = Microphone.get();
//srcStream.publish(_root.exp, "live");
//srcStream.attachAudio(myMic);
}
function unpubLive()
{
//srcStream.attachAudio(null);
//unloadMovie(_root.my_videodest);
srcStream.close();
}
function disconnect() {
// Stops publishing the stream.
destStream.close();
// Deletes the source stream connection.
client_nc.close();
}
//PUBLICATION
pubLive();
stop();
//this is for your camera, dont forget to add a video display element called my_video2
Now on the new room MC, put this code on the first frame
//LECTURE
this.attachMovie("my_video","my_videodest",599,{_x:225, _y:0});
dstStream = new NetStream(_root.client_nc);
dstStream.play(guest); (WHERE GUEST IS THE PERSON U R TALKING TO IN PRIVATE
this.my_videodest.my_video.attachVideo(dstStream);
//my_audio.attachAudio(dstStream); //U can also add audio but it uses a lot of bandwidth...
//DONT FORGET TO ADD A VIDEO ELEMENT LABELED my_video
if anyone see things that can be optimized, that would be cool :-)
enjoy (you can see it live here:
http://www.kinky-mistress.com/ ) register and see..take care, this site is for adults only....