Skip to main content
Oct 14, 2010 8:26 AM UTC
Question

About the setMode method of Camera

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Graeme Bull
    Community Expert
    Community Expert
    Oct 17, 2010 5:24 AM UTC

    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

    Translate
    Oct 17, 2010 9:18 AM UTC

    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?

    Translate
    Graeme Bull
    Community Expert
    Community Expert
    Oct 18, 2010 10:23 PM UTC

    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.

    Translate