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 အသံ/ဗီဒီယို DOM addTextTrack() နည်းလမ်း

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

ဥပမာ

ဗီဒီယိုတွင် စာသားအသစ်တစ်ပုဒ် ထည့်ပါ-

var text1 = myVid.addTextTrack("caption");
text1.addCue(new TextTrackCue("Test text", 01.000, 04.000, "", "", "", true));

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

addTextTrack() method သည် TextTrack object အသစ်တစ်ခုကို ဖန်တီးပြီး ပြန်ပေးသည်။

TextTrack အရာဝတ္ထုအသစ်သည် အသံ/ဗီဒီယိုဒြပ်စင်အတွက် စာသားလမ်းကြောင်းများစာရင်းသို့ ပေါင်းထည့်ထားသည်။


Browser ပံ့ပိုးမှု

Method
addTextTrack() Not supported Not supported Not supported Not supported Not supported

အထားအသို

audio|video.addTextTrack(kind,label,language)

ကန့်သတ်တန်ဖိုးများ

Value Description
kind Specifies the kind of text track.

Possible values:

  • "subtitles"
  • "caption"
  • "descriptions"
  • "chapters"
  •  "metadata"
label A string specifying the label for the text track. Is used to identify the text track for the users
language A two-letter language code that specifies the language of the text track.
To view all available language codes, go to our Language code reference

နည်းပညာဆိုင်ရာအသေးစိတ်

ပြန်ပို့တန်ဖိုး- စာသားလမ်းကြောင်းအသစ်ကို ကိုယ်စားပြုသည့် TextTrack Object တစ်ခု

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