تتبع نوع الملكية
مثال
احصل على نوع مسار النص:
var x = document.getElementById("myTrack").kind;
يمكن أن تكون نتيجة x :
subtitles
التعريف والاستخدام
تقوم الخاصية kind بتعيين أو إرجاع قيمة سمة النوع للمسار.
تحدد سمة النوع نوع مسار النص.
دعم المتصفح
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: سمة نوع <track> HTML
❮ تتبع الكائن