CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.35k stars 878 forks source link

Unable to stop flip camera on double tap by programitically #615

Open vipinchouhan opened 3 years ago

vipinchouhan commented 3 years ago

I am using camerakit for custom camera of our application and make default flip camera by

app:ckDoubleTapToToggleFacing="true"

and then i am trying to disable camera flip at pragmatically on double tap on camera view but unable to disable flip camera on double tap.

Here is my xml code


 <com.wonderkiln.camerakit.CameraView xmlns:app="http://schemas.android.com/apk/res-auto"
            android:id="@+id/camera"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:ckCropOutput="false"
            app:ckFacing="back"
            app:ckDoubleTapToToggleFacing="true"
            app:ckFlash="off"
            app:ckFocus="tapWithMarker"
            app:ckJpegQuality="100"
            app:ckMethod="standard"
            app:ckVideoQuality="max1080p" />

and here is my gradle dependency

implementation 'com.wonderkiln:camerakit:0.13.1'

Please help me to disable flip camera on double tap by programitically