The flash camera object property controller
by admin on 1 月.20, 2009, under FlexSDK3 Programming
I tried it that is set the parameters in the flash camera object.
The method
- get()
Get the camera object.theCamera = Camera.get(); camera1 = Camera.get(0); camera2 = Camera.get(1);
- setKeyFameInterval()
Set the Interval Key frame. The default value is “15″. We can set from 1 to 48. If set value is large, the key fame intarval is long, and the data is smaller.theCamera.setKeyFrameInterval(10);
- setMethod()
This method is setting all of parameter for the camera object. there are the capturing format that are “width”, “heght” and “fps”. We can give priority to either size or fps.theCamera.setMethode(320,240,12); theCamera.setMethod(320,240.false);
If you want to get the parameters , you should access the public value.
theCamera.width;
- setQuality
give quality to the video. The quality parameters are bandwidth and the picture quality.
The default value for bandwidth is “16384″. And the picture quality is from 0 to 100. Of course It affects it each other.theCamera.setQuality(8192, 0) //Bandwidth priority; theCamera.setQuality(0, 80) //Picture priority; theCamera.setQuality(8192, 50); //Adjust at a frame rate
- setLoopback
Confirm a delivery picture in a local view.theCamera = Camera.get(); theCamera.setQuality(0, 50); theCamera.setLoopback(true); theVideo.attachVideko(theCamera);
- setMotionLevel()
I don’t know that must be use. If you want to get the activation message from camera, you should use this.theCamera.setMotionLevel(10,1000); theCamera.onActivity = function(bActive){ if(bActive){ trace("The camera is Active!"); }else{ trace("The camera is not active") } };
No comments for this entry yet...
Leave a Reply
You must be logged in to post a comment.