CrazyOrr / FFmpegRecorder

An Android video recorder using JavaCV and FFmpeg.
201 stars 48 forks source link

Hitting resume button starts recording after one second delay #55

Open levon93 opened 6 years ago

levon93 commented 6 years ago

Hitting resume button starts recording after one second delay approximately, you can easily test it by starting speaking after hitting resume button. Device - Pixel 2 How can I fix this ?

CrazyOrr commented 6 years ago

By the time you can "hit the resume button", all the heavy lifting initializing work should have been done. As you can see in the resumeRecording method, nothing should block. I'm not able to reproduce this problem on my device. The delay may be caused by other factors, it will be helpful if you can locate the exact line of code which causes the delay.

levon93 commented 6 years ago

@CrazyOrr okay thank you, I will try, I don't think smth is blocking, because I resumeRecording after 3 second count down. I couldn't reproduce this on other Android 9 devices, only Pixel 2 for now .