Fully buffer video in Chrome

后端 未结 5 2149
我在风中等你
我在风中等你 2021-02-07 16:01

Is it possible to fully buffer HTML5 video in Chrome (and Opera)?

I host the movie in .mp4 and .webm on amazon S3. In HTML I use standard tag.

5条回答
  •  不要未来只要你来
    2021-02-07 16:21

    Be careful using video.buffered.end(0). According to my experience, it works with Chrome but it fails with IE9.

    I don't know what happens, IE9 seems to forget to do the last update to video.buffered.end() at the end of the buffering process and the video.buffered.end(0) is a little bit smaller than video.duration.

    So, if you think your page could be used with another browser than Chrome, don't use video.buffered.end(0).

提交回复
热议问题