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:
|
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 ရည်ညွှန်းချက်