<method name="setMode" args="width, height, fps, favorsize" />
public function setMode(width, height, fps, favorsize);
setMode(width, height, fps, favorsize)
width, height, fps: number
favorsize: A Boolean value that specifies how to manipulate the
width, height, and frame rate if the camera does not have a native
mode that meets the specified requirements. The default is true,
which means that maintaining capture size is favored; using this
parameter selects the mode that most closely matches width and height
values, even if doing so adversely affects performance by reducing
the frame rate. To maximize frame rate at the expense of camera
height and width, pass false for the favorSize parameter. This
parameter is optional.
The parameters are cached in the attributes
width, height, fps and favorsize.
TODO: If those attributes are not null,
then call setMode automatically after
initializing camera.
Otherwise read values from camera and set attributes.