As requestAnimationFrame stops rendering when it is in the background So, in that time recorded video freezes.