Skip to main content
October 14, 2010
Question

About the setMode method of Camera

  • October 14, 2010
  • 1 reply
  • 1351 views

Quoted from here:

Sets the camera capture mode to the native mode that best meets the  specified requirements. If the camera does not have a native mode that  matches all the parameters you pass, Flash Player selects a capture mode  that most closely synthesizes the requested  mode. This manipulation may involve cropping the image and dropping  frames.

Does it mean that the frames captured is not necessarily the same as required by setMode(width:int, height:int, fps:Number, favorArea:Boolean = true) ? The actual frame captured may be either wider/narrower,higher/lower in size and have higher/lower frequency than required ,is this true?

    This topic has been closed for replies.

    1 reply

    Graeme Bull
    Community Expert
    Community Expert
    October 17, 2010

    It's going to depend on the camera and whether it supports what you have set. Nowadays drivers are pretty good and support all kinds of sizes and framerates. The flash will do it's best to give you what you want, but it all matters on whether or not the driver for the cam will support it.

    Graeme Bull

    www.fmsguru.com

    October 17, 2010

    Graeme,thanks for the reply!

    But what I actually mean is: whether or not will flash player always make sure the actual size is the same as required by internal processing like interpolation even if the video size from camera is different?

    Graeme Bull
    Community Expert
    Community Expert
    October 18, 2010

    No, from what I understand the Flash player will do it's best to grab the size that it can from the camera that closely represents what you have set. Visually the video will fit whatever size video object you put on the stage though.