distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Camera: wait for adjustment not working on first capture image #226

Closed sjamientje closed 9 years ago

sjamientje commented 9 years ago

when i want to capture an image (wait for adjustment = true) the first image is always dark and blurry. It also takes a while before the image is taken. The second image is fine and sharp. When i set auto exposure to true, every caputered image is dark, but sharp. I'm testing it on an iPad 3, hope you guys can help me out.

cheers, Gerben

marchbold commented 9 years ago

Hi, What version of iOS are you testing on? Just trying to replicate the issue here. Have you tested on any other devices or only the iPad?

sjamientje commented 9 years ago

Tested in only on my ipad with version 8.0.2 & version 8.1. will test it tomorrow on my iphone 4s.

the app is running in portrait mode.

// scale factor is stagewidth / 640, camera runs in 640 x 480 var point:Point = new Point(event.localX / scaleFactor, event.localY / scaleFactor); Camera.instance.setFocusPointOfInterest(point); Camera.instance.setExposurePointOfInterest(point); Camera.instance.setFocusMode( CameraParameters.FOCUS_MODE_AUTO ); Camera.instance.setExposureMode( CameraParameters.EXPOSURE_MODE_AUTO );

If i dont set focus and exposure to auto nothing will happen when set point of interest.

marchbold commented 9 years ago

Just an update, I've been able to replicate the issue here with iOS 8. I'm looking into the cause.