Get CameraId from Camera object in android -
i developing on nexus 7 has front-facing camera. thus, of default camera-related retrievals fail try return information first back-facing camera. know whether possible retrieve camera id retrieved camera object?
please, understand not want iterate on list of cameras in order match 1 current camera. also, did retrieve camera using method didn't need persist id of camera.
in 1 of classes, separate camera acquisition class, trying hold of camcorder's profile. invoke camcorderprofile.get(camcorderprofile.high_quality); documentation states get(int quality):
returns camcorder profile first back-facing camera on device @ given quality level. if device has no back-facing camera, returns null.
thus, need cameraid open (front-facing) camera.
thanks help!
Comments
Post a Comment