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