Control start position and duration of play in HTML5 video

前端 未结 4 1123
悲&欢浪女
悲&欢浪女 2021-01-05 01:37

We have a video (13 minutes long) which we would like to control using HTML5. We want to be able to let our users control and select the parts of the video they want to pla

4条回答
  •  我在风中等你
    2021-01-05 01:52

    Extend to michael hanon comments: IE returns buffered.length = 0 and seekable.length = 0. Video doesn't play. So solution:

    src="video.mp4#t=10,30"

    will not works in IE. If you would like to support IE only way is to use javascript to seek video just after start from 0 second.

提交回复
热议问题