'react-native-video stucks in android and ios both

I am using a react-native-video version 5.1.1 and sometimes the video get stuck in between and after some time it starts automatically. I have debugged and saw that onProgress prop is sending an object every time but the currentTime value remains the same for some time in between. See the currentTime key in picture attached

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source