Skip to main content
Participant
April 16, 2009
Question

Flash Live Stream - setMode v Screen size

  • April 16, 2009
  • 1 reply
  • 541 views

Hi,

I have a 2-way video conference running at 640*480, no problem using FCS 3.

What I would like to do is have my camera sending out 640 * 480 to viewer but only show at 120 * 90 on the my own screen.

Right now both in and out streams are displayed at the same size.

// Camera setting

camera.setMode(640,480,15,true);

// video setting

new Video(640,480);

added to stage using addChild.

All code is AS3.

Can this be 120,90 in anyway or is there a wrapper i can put this into to resize it?

(video width and height are read only.)

Any help would be appreciated.

Max.

    This topic has been closed for replies.

    1 reply

    Participant
    April 16, 2009

    Fixed.

    Do not use new Video(640,480) as it messes up the outgoing stream as well. Or in my case Video(120,90).

    Use

    videoOut = new Video();

    addChild(video.out);

    then set the width and height to what you want.

    videoOut.width = 120;

    videoOut.height = 90;

    As always the mistake is between the chair and the keyBoard. :-)

    Posted just in case someone else is new to all of this stuff.