android-vision
android-vision copied to clipboard
Skipping frames
When I call cameraSource.stop() onPause and onDestroy, the logcat prompts about skipping n frames and the application may be doing too much work on its main thread. I tried to put cameraSource.stop() in a separate thread, but still see the same message. Why is it happening?
I believe that this is just a side effect of shutting down the camera preview. If you are interested in exploring the code more, there's a copy of this class open sourced here:
https://github.com/googlesamples/android-vision/blob/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/ui/camera/CameraSource.java#L396
Thank you! When I call cameraSource.stop(), there should not be any issues with skipping frames because CameraSource.class takes care of stop() method. So I do not understand why it is happening.
@Yuliya-Kaleda How did you resolve the issue.I am facing the same issue.Please check the error description
https://github.com/googlesamples/android-vision/issues/476