【问题标题】:Do html 5 videos buffer on page load or only when playing the video?html 5 视频是在页面加载时缓冲还是仅在播放视频时缓冲?
【发布时间】:2014-02-14 21:41:56
【问题描述】:

如果我想在一个页面上嵌入 20 个视频,它们会在页面加载时开始缓冲,还是会等到它们第一次播放/交互?如果他们在加载时缓冲,我怎么能绕过这个直到我想显示视频?我不希望用户缓冲 20 个视频,因为他们可能只看一个或什至根本不看。

【问题讨论】:

标签: html html5-video


【解决方案1】:

您正在查看 HTML5 video 标记的 preload 属性。这是doc。基本上有三种选择:

 auto - when browser should load the entire video when the page loads
 metadata - when browser should load only metadata when the page loads
 none - when browser should NOT load the video when the page loads

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-28
    • 2012-11-01
    • 1970-01-01
    • 2014-02-01
    • 1970-01-01
    相关资源
    最近更新 更多