|
@ -217,10 +217,9 @@ public abstract class AbstractUVCCameraHandler extends Handler { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void captureStill(final String path,AbstractUVCCameraHandler.OnCaptureListener listener) { |
|
|
public void captureStill(final String path,AbstractUVCCameraHandler.OnCaptureListener listener) { |
|
|
// old method, to get screen size picture
|
|
|
AbstractUVCCameraHandler.mCaptureListener = listener; |
|
|
// AbstractUVCCameraHandler.mCaptureListener = listener;
|
|
|
checkReleased(); |
|
|
// checkReleased();
|
|
|
sendMessage(obtainMessage(MSG_CAPTURE_STILL, path)); |
|
|
// sendMessage(obtainMessage(MSG_CAPTURE_STILL, path));
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 开始录制
|
|
|
// 开始录制
|
|
@ -788,6 +787,7 @@ public abstract class AbstractUVCCameraHandler extends Handler { |
|
|
} |
|
|
} |
|
|
// 捕获图片
|
|
|
// 捕获图片
|
|
|
if(! TextUtils.isEmpty(picPath)) { |
|
|
if(! TextUtils.isEmpty(picPath)) { |
|
|
|
|
|
picPath = null; |
|
|
YUVBean bean = new YUVBean(); |
|
|
YUVBean bean = new YUVBean(); |
|
|
bean.setYuvData(yuv); |
|
|
bean.setYuvData(yuv); |
|
|
bean.setPicPath(picPath); |
|
|
bean.setPicPath(picPath); |
|
@ -799,7 +799,6 @@ public abstract class AbstractUVCCameraHandler extends Handler { |
|
|
if(mCaptureListener != null) { |
|
|
if(mCaptureListener != null) { |
|
|
mCaptureListener.onCaptureResult(savePath); |
|
|
mCaptureListener.onCaptureResult(savePath); |
|
|
} |
|
|
} |
|
|
picPath = null; |
|
|
|
|
|
} |
|
|
} |
|
|
}).execute(); |
|
|
}).execute(); |
|
|
} |
|
|
} |
|
|