【发布时间】:2014-02-14 21:41:56
【问题描述】:
如果我想在一个页面上嵌入 20 个视频,它们会在页面加载时开始缓冲,还是会等到它们第一次播放/交互?如果他们在加载时缓冲,我怎么能绕过这个直到我想显示视频?我不希望用户缓冲 20 个视频,因为他们可能只看一个或什至根本不看。
【问题讨论】:
标签: html html5-video
如果我想在一个页面上嵌入 20 个视频,它们会在页面加载时开始缓冲,还是会等到它们第一次播放/交互?如果他们在加载时缓冲,我怎么能绕过这个直到我想显示视频?我不希望用户缓冲 20 个视频,因为他们可能只看一个或什至根本不看。
【问题讨论】:
标签: html html5-video
您正在查看 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
【讨论】: