nativescript-camera icon indicating copy to clipboard operation
nativescript-camera copied to clipboard

Advanced features like ISO or shutter control

Open xeoncross opened this issue 6 years ago • 0 comments

Android provides android.hardware.Camera.Parameters as a way to see what additional options are available for setting manual exposure for the camera (I'm not sure what the iOS version is). I would like to put in a feature request for exposing read/set access to direct Camera.Parameters for devices since nativescript already has the whole API service available.

  • https://github.com/askcs/android-simple-camera/blob/e9cf9a2daf9e6f4c0e2106c1f26224367b5b0126/android-simple-camera/src/main/java/com/commonsware/cwac/camera/CameraHost.java#L74

  • https://stackoverflow.com/questions/2978095/android-camera-api-iso-setting/37567225#37567225

      var mcamera:android.hardware.Camera = android.hardware.Camera.open(0);
      var params:android.hardware.Camera.Parameters = mcamera.getParameters();
      console.dir(params.flatten());
    

Since this project uses android.content.Intent this may be impossible with the current implementation.

Update: I found a nativescript project that is using android.hardware.camera directly as an example

More information on the new Camera2 API is here via the CameraCharacteristics

xeoncross avatar May 22 '19 15:05 xeoncross