根据android api 中 camera.takePicture(
This method is only valid when preview is active (after startPreview()). Preview will be stopped after the image is taken; callers must call startPreview() again if they want to re-start preview or take more pictures. This should not be called between start() and stop().
After calling this method, you must not call startPreview() or take another picture until the JPEG callback has returned.)
发现要拍照需要调用的takePicture方法会停掉一下预览,我们现在自己的工程机器上发现,有一些低配置机上,调用这个方法后底层回调 Camera.PictureCallback要几秒钟时间,然后又只能在这个回调里重启预览startPreview(),导致画面有一个明显卡顿在拍照页面的效果。
现在我就想拍照不调用 camera.takePicture()可不可以实现?类似于有些连拍相机APP的效果(在网上下了一个连拍APP在我们工程机上可以实现,求其思路)!
This method is only valid when preview is active (after startPreview()). Preview will be stopped after the image is taken; callers must call startPreview() again if they want to re-start preview or take more pictures. This should not be called between start() and stop().
After calling this method, you must not call startPreview() or take another picture until the JPEG callback has returned.)
发现要拍照需要调用的takePicture方法会停掉一下预览,我们现在自己的工程机器上发现,有一些低配置机上,调用这个方法后底层回调 Camera.PictureCallback要几秒钟时间,然后又只能在这个回调里重启预览startPreview(),导致画面有一个明显卡顿在拍照页面的效果。
现在我就想拍照不调用 camera.takePicture()可不可以实现?类似于有些连拍相机APP的效果(在网上下了一个连拍APP在我们工程机上可以实现,求其思路)!