خاصية تتبع نصوص الفيديو
مثال
احصل على عدد المسارات النصية المتاحة:
var x = document.getElementById("myVideo").textTracks.length;
التعريف والاستخدام
تقوم الخاصية textTracks بإرجاع كائن TextTrackList.
يمثل كائن TextTrackList المسارات النصية المتوفرة للفيديو.
يتم تمثيل كل مسار نصي متاح بواسطة كائن TextTrack.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
textTracks | Yes | 9.0 | Not supported | 6.0 | Yes |
بناء الجملة
videoObject.textTracks
قيمة الإرجاع
Type | Description |
---|---|
TextTrackList Object | Represents the available text tracks for the the video. TextioTrackList Object:
Note: The first available TextTrack object is index 0 |
TextTrack Object | Represents a text track. TextTrack Object Properties:
|
❮ كائن الفيديو