开发者

Size for webcam in Flash?

I've just an SWF objec开发者_如何学编程t to display the users webcam, however it won't let me make the webcam smaller than 320 x 240. Is this the lowest size I can go?

Just for any reference if needed:

import flash.media.Camera;
import flash.media.Video;

var camera:Camera = Camera.getCamera();
var vid:Video = new Video(320, 240);

camera.setQuality(100, 300);

vid.smoothing = true;
vid.attachCamera(camera);
vid.x = stage.stageWidth/2 - vid.width/2;
vid.y = 0;

addChild(vid);

Thanks.


Have you tried this?

camera.setMode(videoWidth, videoHeight, video fps, favor area);

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜