Scrubbing HTML5 video

I've been looking for a solution where i can "scrub" through HTML5 video. I haven't found one yet and was about to start writing my own. But before i do that, i thought it would make some sense to run it past SO first. Before we get into my approach, see this: This site of course is built in Flash but serves as an example of what i would like to achieve using HTML5. I've experimented with the playbackRate (-1) attribute on the video tag without much luck. I suspect this is because the encoding (ogg, mp4, vp8) are better suited to forward playback. with this, i see two possible approaches: 1. create two videos, one for forward play, and another for backwards play. this of course doubles the size of any videos which is not ideal. 2. split the video into individual jpg frames and swap out the images. This would mean i have no sound, but in my particular application, this is not an issue. I feel that the second option is the best suited for my particular application and allows for some flexibility in playback. What do you think?
Don't know much about HTML5 video, but have you tried manipulating the currentTime property?…

以上就是Scrubbing HTML5 video的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准