/ Flex 4.6和Flex 4.9 /
camera = Camera.getCamera( cameraIndex );
cameraWidth = 1280;//camera.width;
cameraHeight = 720;//camera.height;
videoHolder = new UIComponent();
video = new Video( cameraWidth, cameraHeight );
trace( cameraWidth, cameraHeight );
camera.setMode( cameraWidth, cameraHeight, 24 );
video.attachCamera( camera );
videoHolder.addChild( video );
cameraGroup.addElement( videoHolder );
答案 0 :(得分:0)
无法在纯ActionScript中执行此操作,但是您应该能够通过本机扩展(名为ANE)来执行此操作,如下所述:http://www.adobe.com/devnet/air/native-extensions-for-air.html
我没有发现任何现有的ANE做你需要的,所以你必须自己做。