Camera onPreviewFrame not called on some devices

荒凉一梦 提交于 2019-12-04 03:20:52

As for the time being, I haven't found a fix for this issue, rather I have a workaround.

Since we cannot use both camera.setPreviewDisplay(surfaceHolder) and camera.setPreviewCallback(previewCallback) at the same time expect to use the surfaceHolder.lockCanvas() in onPreviewFrame() for some devices, I have transferred my preview to another SurfaceView and handle the onPreviewFrame() from there and use its own SufraceHolder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!