Does anyone know if it's possible to call an external script or take some kind of action (like update a database, write to a file etc) at regular intervals while a video is playing?
So the actions would be
1. Is video playing?
2. If yes and time is more than 5 mins then call a script
3. Sleep and repeat from step 1
That's it. Hopefully quite simple
yes, you can use setInterval() to periodically call any function and you can create a function that calls your sever-side script.
perfect... you're a star