Skip to content

Can not use camera quality 'AVCaptureSessionPreset1920x1080' #41

@newportsolutionsgroup

Description

@newportsolutionsgroup

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions