HTML အကိုးအကား

အက္ခရာဖြင့် HTML HTML အမျိုးအစားအလိုက် HTML Browser ပံ့ပိုးမှု HTML အရည်အချင်းများ HTML ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ HTML ပွဲများ HTML အရောင်များ HTML Canvas HTML အသံ/ဗီဒီယို HTML အက္ခရာအစုံများ HTML Doctypes HTML URL ကုဒ် HTML ဘာသာစကားကုဒ်များ HTML နိုင်ငံကုဒ်များ HTTP မက်ဆေ့ခ်ျများ HTTP နည်းလမ်းများ PX မှ EM Converter ကီးဘုတ်ဖြတ်လမ်းများ


HTML <audio> Tag


ဥပမာ

အသံဖိုင်ကို ဖွင့်ပါ-

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio tag.
</audio>

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

တေးဂီတ <audio>သို့မဟုတ် အခြားအသံထုတ်လွှင့်မှုများကဲ့သို့သော စာရွက်စာတမ်းတစ်ခုတွင် အသံအကြောင်းအရာကို မြှုပ်နှံရန်အတွက် တဂ်ကို အသုံးပြုသည်။

တဂ်တွင် မတူညီသော အသံရင်းမြစ်များဖြင့် <audio>တစ်ခု သို့မဟုတ် တစ်ခုထက်ပိုသော တဂ် များ ပါရှိသည်။ <source>ဘရောင်ဇာသည် ၎င်းကို ပံ့ပိုးသည့် ပထမဆုံး အရင်းအမြစ်ကို ရွေးချယ်မည်ဖြစ်သည်။

စာသား <audio>နှင့် </audio> တဂ်များကြားမှ စာသားကို ဒြပ်စင်ကို မပံ့ပိုးသော ဘရောက်ဆာများတွင်သာ ပြသပါမည် <audio>

HTML တွင် ပံ့ပိုးထားသော အသံဖော်မတ် သုံးခုရှိသည်- MP3၊ WAV နှင့် OGG။

အသံဖော်မတ်နှင့် ဘရောက်ဆာ ပံ့ပိုးမှု

Browser MP3 WAV OGG
Edge / IE YES YES* YES*
Chrome YES YES YES
Firefox YES YES YES
Safari YES YES NO
Opera YES YES YES

* အစွန်း 79 မှ


အကြံပြုချက်များနှင့် မှတ်စုများ

အကြံပြုချက်- ဗီဒီယိုဖိုင်များအတွက်၊ တဂ်ကိုကြည့်ပါ။ <video>



Browser ပံ့ပိုးမှု

ဇယားရှိ နံပါတ်များသည် ဒြပ်စင်ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။

Element
<audio> 4.0 9.0 3.5 4.0 11.5

ဂုဏ်တော်

Attribute Value Description
autoplay autoplay Specifies that the audio will start playing as soon as it is ready
controls controls Specifies that audio controls should be displayed (such as a play/pause button etc)
loop loop Specifies that the audio will start over again, every time it is finished
muted muted Specifies that the audio output should be muted
preload auto
metadata
none
Specifies if and how the author thinks the audio should be loaded when the page loads
src URL Specifies the URL of the audio file

ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ

<audio>tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။


ဖြစ်ရပ်ဂုဏ်တော်များ

<audio>tag သည် HTML ရှိ Event Attributes များကိုလည်း ပံ့ပိုး ပေးပါသည်


ဆက်စပ်စာမျက်နှာများ

HTML DOM ရည်ညွှန်း- HTML အသံ/ဗီဒီယို DOM အကိုးအ ကား


မူရင်း CSS ဆက်တင်များ

တစ်ခုမှ