So im working on a school project for a museum, we are making an info screen with a video to play for the visitors, ill like to make a function so that if one visitor is pausing the video and leave it will reset after 20 sec or so. So the next visitor dont have to reset the video by him self.

Any easy way to do that?

I just use the standard html5 video player and controls.

有帮助吗?

解决方案 2

I got help on a danish forum a guy made an example i could modify for my own project it worked for me the solution:

http://netkoder.dk/test/test0221.html

其他提示

http://blog.teamtreehouse.com/building-custom-controls-for-html5-videos it might help probably you need to write your required code within

  if (video.paused == true)
    {

    //find out code to find whether its been paused for 20 second.....may be use some timer control to get this 

    if(20secPaused) 
    {
     video.currentTime = time;
    }

hope it helps :)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top