Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配Camera2接口 #148

Open
luoran-gaolili opened this issue May 6, 2021 · 0 comments
Open

适配Camera2接口 #148

luoran-gaolili opened this issue May 6, 2021 · 0 comments

Comments

@luoran-gaolili
Copy link

大佬您好,我用Camera2 api调试您的demo,预览不成功,显示黑屏,代码如下:

releaseSurfaceTexture();
mOutputTexture = createDetachedSurfaceTexture();//创建纹理

mPreviewSurface = new Surface(mOutputTexture);
mPreviewRequestBuilder.addTarget(mPreviewSurface); // 设置预览输出的 Surface
mPreviewRequestBuilder.addTarget(mImageReader.getSurface());

log如下:

android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): submitRequestList:401: Camera 0: Got error Function not implemented (-38) after trying to set streaming request
请问下如何解决呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant