search

Home  >  Q&A  >  body text

javascript - In some video-based h5 pages, how to obtain the video buffering progress or how to preload the video

[Tencent Carnival h5]
http://news.qq.com/FERD/jiani...

When you open the link, you will find that the page has many <video> tags and too many video elements. Before the user sees the homepage, the video must be preloaded to prevent lag. However, the video element is different from the img image and can be used. Image object, monitor whether the loading is completed, how to preload the video, and monitor the loading progress?

漂亮男人漂亮男人2753 days ago644

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:32:15

    I have seen Youku videos before that divide the entire video into several segments and load them separately. When one segment is loaded, the next segment will be loaded

    reply
    0
  • Cancelreply