HTML DOM Video preload property
Examples
See page Once loaded whether to start loading the video:
var x = document.getElementById ( "myVideo") preload.;
x The output is: none // when the page is loaded, the video should not be loaded
try it"
Definition and Usage
preload property sets or returns the video preload property values.
preload property sets or returns whether the page is loaded immediately after loading audio / video.
Note: If the autoplay attribute, this property is ignored.
Note: <video> element in HTML5 is new.
Browser Support
All major browsers support preload property
Note: Internet Explorer does not support the preload property. .
grammar
Back preload attributes:
videoObject .preload
Setting preload properties:
videoObject .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. |
technical details
return value: | String representing the preloaded data. The possible return values "auto", "metadata", or "none". |
---|
More examples
Examples
The following example demonstrates how to set different properties:
. Document.getElementById ( "myVideo") preload = "none";
. Document.getElementById ( "myVideo") preload = "auto";
. Document.getElementById ( "myVideo") preload = "auto";
try it"
Related Pages
HTML Reference Manual: HTML <Video> PRELOAD property
Video Object