एचटीएमएल ऑडियो/वीडियो डोम एडटेक्स्टट्रैक() विधि
❮ एचटीएमएल ऑडियो/वीडियो डोम संदर्भ
उदाहरण
वीडियो में एक नया टेक्स्ट ट्रैक जोड़ें:
var
text1 = myVid.addTextTrack("caption");
text1.addCue(new TextTrackCue("Test text", 01.000, 04.000, "", "", "", true));
परिभाषा और उपयोग
AddTextTrack () विधि एक नया टेक्स्टट्रैक ऑब्जेक्ट बनाता है और देता है।
ऑडियो/वीडियो तत्व के लिए टेक्स्ट ट्रैक की सूची में नया टेक्स्टट्रैक ऑब्जेक्ट जोड़ा गया है।
ब्राउज़र समर्थन
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 |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक टेक्स्टट्रैक ऑब्जेक्ट, जो नए टेक्स्ट ट्रैक का प्रतिनिधित्व करता है |
---|
❮ एचटीएमएल ऑडियो/वीडियो डोम संदर्भ