အိမ်ခြေရာ ခံ တစ်မျိုး
ဥပမာ
စာသားလမ်းကြောင်းအမျိုးအစားကို ရယူပါ-
var x = document.getElementById("myTrack").kind;
x ၏ရလဒ်သည် -
subtitles
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အမျိုးအစားပိုင်ဆိုင်မှုသည် လမ်းကြောင်း၏ အမျိုးအစား attribute ၏တန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
အမျိုးအစား attribute သည် စာသားလမ်းကြောင်းအမျိုးအစားကို သတ်မှတ်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
kind | Yes | 10.0 | Not supported | Not supported | Yes |
အထားအသို
အမျိုးအစားပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
trackObject.kind
အမျိုးအစားပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
trackObject.kind = "captions|chapters|descriptions|metadata|subtitles"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
captions | The track defines translation of dialogue and sound effects (suitable for deaf users) |
chapters | The track defines chapter titles (suitable for navigating the media resource) |
descriptions | The track defines a textual description of the video content (suitable for blind users) |
metadata | The track defines content used by scripts. Not visible for the user |
subtitles | The track defines subtitles, used to display subtitles in a video |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | စာသားအမျိုးအစားကို ကိုယ်စားပြုသော စာကြောင်းတစ်ကြောင်း |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
စာသားလမ်းကြောင်းအမျိုးအစားကို သတ်မှတ်ပါ-
document.getElementById("myTrack").kind = "chapters";
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <track> အမျိုးအစား ရည်ညွှန်းချက်
❮ Object ကို ခြေရာခံပါ။