android.hardware.Camera.setErrorCallback()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(292)

本文整理了Java中android.hardware.Camera.setErrorCallback()方法的一些代码示例,展示了Camera.setErrorCallback()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Camera.setErrorCallback()方法的具体详情如下:
包路径:android.hardware.Camera
类名称:Camera
方法名:setErrorCallback

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);

相关文章