ट्रैक प्रकार संपत्ति
उदाहरण
टेक्स्ट ट्रैक का प्रकार प्राप्त करें:
var x = document.getElementById("myTrack").kind;
x का परिणाम हो सकता है:
subtitles
परिभाषा और उपयोग
प्रकार की संपत्ति ट्रैक की प्रकार विशेषता का मान सेट या लौटाती है।
प्रकार विशेषता टेक्स्ट ट्रैक के प्रकार को निर्दिष्ट करती है।
ब्राउज़र समर्थन
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 <ट्रैक> प्रकार विशेषता
ट्रैक ऑब्जेक्ट