From e086126279510c0ba9794a10e7571f7d13884860 Mon Sep 17 00:00:00 2001 From: Dylan McIntyre Date: Mon, 27 Feb 2017 11:34:06 -0500 Subject: [PATCH] finalize readme and 0.9.12 --- README.md | 20 ++++++++----------- camerakit/build.gradle | 2 +- .../api16/com/flurgle/camerakit/Camera1.java | 2 -- .../com/flurgle/camerakit/CameraView.java | 1 + 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 5a143852..eaa69d8a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ Try out all the unique features using the CameraKit Demo from the Google Play st ## Features - Image and video capture seamlessly working with the same preview session. -- Automatic use of both Camera and Camera2 APIs. - Automatic system permission handling. - Automatic preview scaling. - Create a `CameraView` of any size (not just presets!). @@ -46,16 +45,17 @@ Try out all the unique features using the CameraKit Demo from the Google Play st - Multiple capture methods. - `METHOD_STANDARD`: an image captured normally using the camera APIs. - `METHOD_STILL`: a freeze frame of the `CameraView` preview (similar to SnapChat and Instagram) for devices with slower cameras. - - `METHOD_AUTO`: automatic capture method determination based on measured speed. -- Built-in tap to focus and auto focus. -- Built-in pinch to zoom. + - **Coming soon:** `METHOD_SPEED`: automatic capture method determination based on measured speed. +- Built-in continuous focus. +- **Coming soon:** Built-in tap to focus. +- **Coming soon:** Built-in pinch to zoom. ## Setup Add __CameraKit__ to the dependencies block in your `app` level `build.gradle`: ```groovy -compile 'com.flurgle:camerakit:1.0.0' +compile 'com.flurgle:camerakit:0.9.12' ``` ## Usage @@ -229,8 +229,6 @@ cameraView.setMethod(CameraKit.Constants.METHOD_STANDARD); When you use `METHOD_STANDARD` (`camerakit:ckMethod="standard"`), images will be captured using the normal camera API capture method using the shutter. -[Insert GIF] - #### `still` ```java @@ -239,17 +237,15 @@ cameraView.setMethod(CameraKit.Constants.METHOD_STILL); When you use `METHOD_STILL` (`camerakit:ckMethod="still"`), images will be captured by grabbing a single frame from the preview. This behavior is the same as SnapChat and Instagram. This method has a higher rate of motion blur but can be a better experience for users with slower cameras. -[Insert GIF] - #### `speed` +**Coming soon** + ```java cameraView.setMethod(CameraKit.Constants.METHOD_SPEED); ``` -When you use `METHOD_SPEED` (`camerakit:ckMethod="speed"`), images will be first be captured using the [standard](#standard) method. If capture consistently takes a long amount of time, the picture mode will fallback to [still](#still) capture. - -[Insert GIF] +When you use `METHOD_SPEED` (`camerakit:ckMethod="speed"`), images will be captured using both `METHOD_STANDARD` and `METHOD_SPEED`. After 6 image captures the camera will set itself to `METHOD_STANDARD` or `METHOD_STILL` permanently based on whichever is faster. - - - diff --git a/camerakit/build.gradle b/camerakit/build.gradle index 110053c9..ee7ff74b 100644 --- a/camerakit/build.gradle +++ b/camerakit/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.android.library' ext { PUBLISH_GROUP_ID = 'com.flurgle' PUBLISH_ARTIFACT_ID = 'camerakit' - PUBLISH_VERSION = '0.9.11' + PUBLISH_VERSION = '0.9.12' } android { diff --git a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java index 82e35156..0c137ef3 100644 --- a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java +++ b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java @@ -396,8 +396,6 @@ public class Camera1 extends CameraImpl { } private void prepareMediaRecorder() { - // mMediaRecorder.setPreviewDisplay(mPreview.getSurface()); - try { mMediaRecorder.prepare(); } catch (IllegalStateException e) { diff --git a/camerakit/src/main/java/com/flurgle/camerakit/CameraView.java b/camerakit/src/main/java/com/flurgle/camerakit/CameraView.java index 0f724826..9044ef91 100644 --- a/camerakit/src/main/java/com/flurgle/camerakit/CameraView.java +++ b/camerakit/src/main/java/com/flurgle/camerakit/CameraView.java @@ -97,6 +97,7 @@ public class CameraView extends FrameLayout { @Override public void onDisplayOrientationChanged(int displayOrientation) { mCameraImpl.setDisplayOrientation(displayOrientation); + mPreviewImpl.setDisplayOrientation(displayOrientation); } }; }