我使用camera2.CameraConstrainedHighSpeedCaptureSession
api 制作了一个应用程序来获取 120fps 的摄像头捕获,并且效果很好。(三星 Galaxy 10 与 Android 版本 11)
不过安卓11版本更新后,预览是黑屏。
由于发现了问题,摄像头很好打开,但CameraCaptureSession.CaptureCallback
没有被调用。
private CameraConstrainedHighSpeedCaptureSession mSCameraSession;
List<CaptureRequest> mPreviewBuilderBurst = new ArrayList<CaptureRequest>();
mPreviewBuilderBurst = mSCameraSession.createHighSpeedRequestList(mPreviewBuilder.build());
mSCameraSession.setRepeatingBurst(mPreviewBuilderBurst, mSessionCaptureCallback, mCameraListenerHandler);
private CameraCaptureSession.CaptureCallback mSessionCaptureCallback = new CameraCaptureSession.CaptureCallback() {
@Override
public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, TotalCaptureResult result) {
super.onCaptureCompleted(session, request, result);
}
};
有谁能帮助我吗?