This fix works perfect. I haven’t had any lags when I pressed the record button.
But I wonder what you have changed. Actually I wonder if there is a change in the functionality. Do I have to test it thoroughly? I don’t want to break my app cause I have to show a demo anytime soon.