Open muhammad-asad-26 opened 5 years ago
Hi, We are planning to use CameraKit in one of our applications. We have some initial R&D, the camera switch is not working. Kindly can anyone give us some feedback on it what might be wrong with it.
From the documentation the suggested way is
if (mCameraKitView.getFacing() == CameraKit.FACING_BACK) { mCameraKitView.setFacing(CameraKit.FACING_FRONT); } else { mCameraKitView.setFacing(CameraKit.FACING_BACK); }
also tried
mCameraKitView.toggleFacing();
but nothing seems to work.
CameraKit Version: com.camerakit:camerakit:1.0.0-beta3.11
Android Device: Huawei Nexus 6P
Android Version: 8.1
The camera should switch
The camera is not switched
You can't write it like that : app:camera_facing="back" You should set it in Java code
app:camera_facing="back"
Bug
Hi, We are planning to use CameraKit in one of our applications. We have some initial R&D, the camera switch is not working. Kindly can anyone give us some feedback on it what might be wrong with it.
From the documentation the suggested way is
also tried
but nothing seems to work.
Environment
CameraKit Version: com.camerakit:camerakit:1.0.0-beta3.11
Android Device: Huawei Nexus 6P
Android Version: 8.1
Steps to Reproduce
Expected Behavior
The camera should switch
Actual Behavior
The camera is not switched