SquareCamera icon indicating copy to clipboard operation
SquareCamera copied to clipboard

Can not use camera quality 'AVCaptureSessionPreset1920x1080'

Open newportsolutionsgroup opened this issue 7 years ago • 2 comments

Love this module. Works great! Having a strange minor issue....

I am receiving the following message in Appcelerator console when running on device:

I tried to remedy this by setting the camera backQuality during creation but that has no effect.

        var camera_scanner = SquareCamera.createView({
          camera: "back", 
          backQuality: SquareCamera.QUALITY_HIGH,
          backgroundColor: "#fff",
          detectCodes:true, // Available since v 0.7
          forceHorizontal:true, //optional  m1ga pull request module extension                       
        });

[WARN] : : Can not use camera quality 'AVCaptureSessionPreset1920x1080'. Defaulting to High. [INFO] : Setting camera quality to: AVCaptureSessionPresetHigh [INFO] : : Setting the autofocus range to near!

I previously was using QUALITY_HD and received the same warning/error.

Does anyone know how to remedy the camera quality issue?

In a possibly related issue, using the camera later in our app sometimes will no longer autofocus, is it possible to set the autofocus range/setting with this module?

newportsolutionsgroup avatar Jun 10 '17 01:06 newportsolutionsgroup

I'm having the same issue actually

amigoni avatar Mar 29 '18 20:03 amigoni

having the same issue. prob need an update! anyone?

mrtomnguyen avatar May 29 '18 20:05 mrtomnguyen