javascript - How to check when a video loops html5 -
I can usually check for the end of a video with an 'endated' event. But it was not removed after the video is on the loop. I have tried to compare the current time and duration - but the current time is not always accurate for the other. What methods are available to restart the video?
You can bind to time-up
event of the video. Then store current time
and check whether the current period is short, the last saved period. If this happens, the video has resumed. See this Bela as an example:
Comments
Post a Comment