HTML <video> preload Attribute
ဥပမာ
စာမျက်နှာဖွင့်သည့်အခါ ဗီဒီယိုကို မတင်သင့်ဟု စာရေးသူထင်သည်-
<video controls preload="none">
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
preload
ရည်ညွှန်းချက်သည် စာမျက်နှာကို ဖွင့်သည့်အခါတွင် ဗီဒီယိုကို တင်ပေးသင့်သည်ဟု စာရေးသူက မည်သို့ထင်မြင်ကြောင်း သတ်မှတ်ဖော်ပြသည် ။
ရည်ညွှန်းချက် သည် preload
စာရေးသူအား အကောင်းဆုံးအသုံးပြုသူအတွေ့အကြုံကို ဖြစ်ပေါ်စေမည်ဟု သူထင်သည်နှင့် ပတ်သက်၍ ဘရောက်ဆာအား အရိပ်အမြွက်ပေးနိုင်သည်။ ဤအရည်အချင်းကို အချို့သောအခြေအနေများတွင် လျစ်လျူရှုထားနိုင်သည်။
မှတ်ချက်-preload
ရှိနေလျှင် ရည်ညွှန်းချက်အား လျစ်လျူရှု ထားသည်
autoplay
။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
preload | 4.0 | 9.0 | 4.0 | 3.1 | 10.5 |
အထားအသို
<video preload="auto|metadata|none">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
auto | The author thinks that the browser should load the entire video when the page loads |
metadata | The author thinks that the browser should load only metadata when the page loads |
none | The author thinks that the browser should NOT load the video when the page loads |
❮ HTML <video> တဂ်