本文整理了Java中android.hardware.Camera.setErrorCallback()
方法的一些代码示例,展示了Camera.setErrorCallback()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Camera.setErrorCallback()
方法的具体详情如下:
包路径:android.hardware.Camera
类名称:Camera
方法名:setErrorCallback
暂无
代码示例来源:origin: betri28/FaceDetectCamera
private void setErrorCallback() {
mCamera.setErrorCallback(mErrorCallback);
}
代码示例来源:origin: betri28/FaceDetectCamera
private void setErrorCallback() {
mCamera.setErrorCallback(mErrorCallback);
}
代码示例来源:origin: lb377463323/GraphicsTestBed
private void closeCamera() {
if (mCamera != null){
mCamera.setErrorCallback(null);
mCamera.release();
mCamera = null;
Log.i(TAG, "Camera has closed!");
}
}
代码示例来源:origin: lb377463323/GraphicsTestBed
private void startPreview(){
if (mCamera != null) {
mCamera.setErrorCallback(mErrorCallback);
mCamera.startPreview();
Log.i(TAG, "Camera Preview has started!");
}
}
代码示例来源:origin: betri28/FaceDetectCamera
@Override
public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
mCamera.setPreviewCallbackWithBuffer(null);
mCamera.setErrorCallback(null);
mCamera.release();
mCamera = null;
}
代码示例来源:origin: betri28/FaceDetectCamera
@Override
public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
mCamera.setPreviewCallbackWithBuffer(null);
mCamera.setErrorCallback(null);
mCamera.release();
mCamera = null;
}
代码示例来源:origin: JessYanCoding/CameraFilters
mCamera.setErrorCallback(this);
代码示例来源:origin: Car-eye-team/Car-eye-device
camera[index].setErrorCallback(new CameraErrorCallback(index));
camera[index].setParameters(parameters);
camera[index].startPreview();
代码示例来源:origin: stackoverflow.com
return;
mCamera.setErrorCallback(new ErrorCallback() {
public void onError(int error, Camera camera) {
代码示例来源:origin: linsir6/WebRTC-Voice
camera.setErrorCallback(new android.hardware.Camera.ErrorCallback() {
@Override
public void onError(int error, android.hardware.Camera camera) {
代码示例来源:origin: hypeapps/Endoscope
mUpdated = false;
mUnlocked = false;
mCamera.setErrorCallback(new Camera.ErrorCallback() {
@Override
public void onError(int error, Camera camera) {
代码示例来源:origin: linsir6/WebRTC-Voice
camera.setErrorCallback(cameraErrorCallback);
startPreviewOnCameraThread(width, height, framerate);
frameObserver.onCapturerStarted(true);
内容来源于网络,如有侵权,请联系作者删除!