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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -