I’m working with a good quality usb camera at the moment. The video quality of camera is quite good when viewed in the viewer supplied with the drivers (I presume it’s implemented using C++). And as to be expected Flash cannot deliver the same level of quality.
But what are my options to improve the quality of an incoming local video stream in Flash, considering I have complete setup control over the local machine the flash is running on?
use the public function setQuality(bandwidth:int, quality:int):void
see: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Camera.html#setQuality%28%29 for more information
Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9
Sets the maximum amount of bandwidth per second or the required picture quality of the current outgoing video feed. This method is generally applicable only if you are transmitting video using Flash Media Server.
Use this method to specify which element of the outgoing video feed is more important to your application—bandwidth use or picture quality.
Parameters
bandwidth:int — Specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second. To specify that Flash Player video can use as much bandwidth as needed to maintain the value of quality, pass 0 for bandwidth. The default value is 16384.