HTML video preload property
Examples
When the page loads the video should not be loaded:
<video controls preload="none">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
您的浏览器不支持 video 标签。
</video>
try it"
Browser Support
In addition to Internet Explorer, all major browsers do not support the preload property.
Definition and Usage
preload attribute specifies whether the video when the page loaded Loading.
If the autoplay attribute, this property is ignored.
Note: If you use the autoplay attribute preload is ignored.
Differences between HTML 4.01 and HTML5
<Video> tag is the new HTML5 tags.
grammar
<video preload=" auto|metadata|none ">
Property Value
value | description |
---|---|
auto | Once the page is loaded instructions, then start loading the audio / video. |
metadata | It indicates when the page is loaded only load audio / video metadata. |
none | After indicating the page loads should not load audio / video. |
HTML <video> tag