+ 1
Video play and pause event problem
I need to do some specific functions when ever a video is played or paused. Yes I'm using basic "onplay" and "onpause" events but the problem is that those events will also be called when the video lags for some reason. When video lags and is waiting to be loaded it calls the pause event and when its ready it calls the play event. I need to call these only when the video is played or paused using a mouse click.
1 Answer
0
Try the onClick event instead.
Check here:
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_av_met_play_pause