I am designing an app which uses HTML 5 video. When I seek while the video is running "video pause" event is fired which in turns affect my logic for actions which has to happen during seeking. Is there a way by which I can remove this pause event or find that particular pause events which happen with seeking?
You can use video element's readyState
property to check whether the pause event fired when the user seeked or when the user paused.
var vid = document.getElementById("myVideo");
var vidState = vid.readyState; //when user hit the pause button, this value will be 4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With