HTML <track> Tag
ဥပမာ
ဘာသာစကား နှစ်ဘာသာအတွက် စာတန်းထိုးသီချင်းများပါရှိသော ဗီဒီယို
<video width="320" height="240" controls>
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="fgsubtitles_en.vtt" kind="subtitles" srclang="en" label="English">
<track src="fgsubtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
</video>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
တဂ် သည် <audio> သို့မဟုတ် <video>
ဒြပ်စင် <track>
များအတွက် စာသားလမ်းကြောင်းများကို သတ်မှတ်သည်
။
မီဒီယာဖွင့်နေချိန်တွင် မြင်နိုင်စေမည့် စာတန်းထိုးဖိုင်များ၊ စာတန်းထိုးဖိုင်များ သို့မဟုတ် စာသားပါရှိသော အခြားဖိုင်များကို သတ်မှတ်ရန် ဤဒြပ်စင်ကို အသုံးပြုပါသည်။
သီချင်းများကို WebVTT ဖော်မတ် (.vtt ဖိုင်များ) ဖြင့် ဖော်မတ်လုပ်ထားသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ဒြပ်စင်ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Element | |||||
---|---|---|---|---|---|
<track> | 23.0 | 10.0 | 31.0 | 6.0 | 12.1 |
ရွေးချယ်နိုင်သော အရည်အချင်းများ
Attribute | Value | Description |
---|---|---|
default | default | Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate |
kind | captions chapters descriptions metadata subtitles |
Specifies the kind of text track |
label | text | Specifies the title of the text track |
src | URL | Required. Specifies the URL of the track file |
srclang | language_code | Specifies the language of the track text data (required if kind="subtitles") |
ကမ္ဘာလုံးဆိုင်ရာ အရည်အချင်းများ
<track>
tag သည် HTML တွင် Global Attributes ကို ပံ့ပိုး ပေးပါသည်။
ဖြစ်ရပ်ဂုဏ်တော်များ
<track>
tag သည် HTML ရှိ Event Attributes ကိုလည်း ပံ့ပိုး ပေးပါသည် ။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML ဗီဒီယို
HTML သင်ခန်းစာ- HTML အသံ
HTML DOM ရည်ညွှန်း- Object ကို ခြေရာခံ ပါ။
မူရင်း CSS ဆက်တင်များ
တစ်ခုမှ