Video play and pause event problem | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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.

25th Oct 2019, 7:36 PM
Toni Isotalo
Toni Isotalo - avatar
1 Antwort
25th Oct 2019, 10:29 PM
Xyenia 🦉
Xyenia 🦉 - avatar