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 <video> Tag


ဥပမာ

ဗီဒီယိုကို ဖွင့်ပါ-

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

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

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

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

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

HTML တွင် ပံ့ပိုးထားသော ဗီဒီယိုဖော်မတ်သုံးမျိုး ရှိသည်- MP4၊ WebM နှင့် OGG။

Browser MP4 WebM Ogg
Edge YES YES YES
Chrome YES YES YES
Firefox YES YES YES
Safari YES YES NO
Opera YES YES YES

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

အကြံပြုချက်- အသံဖိုင်များအတွက်၊ တဂ်ကိုကြည့်ပါ။ <audio>



Browser ပံ့ပိုးမှု

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

Element
<video> 4.0 9.0 3.5 3.1 11.5

ရွေးချယ်နိုင်သော အရည်အချင်းများ

Attribute Value Description
autoplay autoplay Specifies that the video will start playing as soon as it is ready
controls controls Specifies that video controls should be displayed (such as a play/pause button etc).
height pixels Sets the height of the video player
loop loop Specifies that the video will start over again, every time it is finished
muted muted Specifies that the audio output of the video should be muted
poster URL Specifies an image to be shown while the video is downloading, or until the user hits the play button
preload auto
metadata
none
Specifies if and how the author thinks the video should be loaded when the page loads
src URL Specifies the URL of the video file
width pixels Sets the width of the video player

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

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


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

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


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

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


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

တစ်ခုမှ