onPause Listener
const handlePaused = (e) => {
// readyState is 4 (manually clicked!)
// readyState is 1. pause event was initiated by the seek
if (e.target.readyState !== 1) {
// your logic goes here
}
}
//better understanding https://www.w3.org/2010/05/video/mediaevents.html