Anyone know how to using it for mediarecorder ? im using
recorder.setPreviewDisplay(holder.getSurface) where holder - it's camera ( i see chest rectangle on my screen of phone) When i runn my app - in logcat i see error (camera is not aviable) im try to using function setCamera - but it's not help me. Anyone know how to right use it ?
or maybe i can record video(only video, without audio) some other way?
ok SOLVED
this code for example
mediaRecorder = new MediaRecorder();
camera.unlock();
mediaRecorder.setCamera(camera);