PDA

View Full Version : a client side video from AVPresence


sara.s
12-09-2007, 07:41 AM
Hi there,

I have a problem here,

I have some AVPresence components and they work well, the problem is here that I want to have a simple client side Video on my stage with a dropdown list showing the online users, I want to give the user the ability to select from the list and then the video of selected person which is on his AVPresence shows on the video I added on the stage as well(only for the client)

Does any one can help me, please?
I'm in real danger

sara.s
12-09-2007, 09:29 AM
I don't know if this is silly or not but I tried this
FCAVPresenceClass.prototype.startReceive = function(userN) {
this.seat_video.attachVideo(this.ns);
this.seat_video.smoothing = true;
this.seat_video.deblocking = 4;
this.ns.play(this.prefix+this.soName);
_root.userCamera[userN][0] = this.ns; <------------
_root.userCamera[userN][1] = this.prefix+this.soName;<------------
this.gotoAndStop("receiving");
};

and then on my dropdown change event
on (change) {
_parent.myVid2.attachVideo(_root.userCamera[this.selectedItem.label][0]);
_root.userCamera[this.selectedItem.label][0].play(_root.userCamera[this.selectedItem.label][1]);
}


am I so far away from the solution?

crazydev
12-12-2007, 10:26 AM
hi
hmmm... i think you have to keep track of stream names of the AVPresence. You must pass same stream name to your video object on stage