Front-facing camera can't video
Closed this issue · 2 comments
The official code changed in the following places
String cameraId = manager.getCameraIdList()[1];
Can't video
How can I solve?
you need find Back CAMERA ID with code like my :
for(String cameraId : cameraManager.getCameraIdList()){ CameraCharacteristics cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId); if(cameraCharacteristics.get(CameraCharacteristics.LENS_FACING) == CameraCharacteristics.LENS_FACING_BACK){ continue; } mCameraId = cameraId; return; }
This sample has been migrated to a new location where we can accept Pull Requests (check README for more information).
As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.
If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!