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