开发者

HTML5 video player, loop only specific frames

I am looking to play and loop only certain parts of a video with the html5 video player. I am hoping for something like loopstart and loopend attributes for the audio player, but have not found documentation that states that this is available for video.

An example of what I would like to do:

开发者_如何学Python
  1. when the page loads, the src video plays for the first 5 seconds of the video
  2. at that point, the video will loop seconds 6, 7 and 8 of the video...
  3. until a link below the player is clicked, at which point seconds 9-12 will play.

Is this something that can be done with the html5 player? I would like to try to do this without resorting to a flash player.

If this is not possible with the html5 video, would a canvas solution be possible?


For anyone who cares, I have found a solution. The JME player is quite a fancy player with many bells and whistles, including .currentTime().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜