خاصية HTML Audio / Video DOM videoTracks
❮ مرجع DOM الصوت / الفيديو HTML
مثال
احصل على عدد مسارات الفيديو المتاحة:
var vid = document.getElementById("myVideo");
alert(vid.videoTracks.length);
التعريف والاستخدام
تقوم خاصية videoTracks بإرجاع كائن VideoTrackList.
يمثل كائن VideoTrackList مسارات الفيديو المتاحة للفيديو.
يتم تمثيل كل مسار فيديو متاح بواسطة كائن VideoTrack.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
videoTracks | Not supported | Not supported | Not supported | Not supported | Not supported |
بناء الجملة
video.videoTracks
قيمة الإرجاع
Type | Description |
---|---|
VideoTrackList Object | Represents the available video tracks for the video. VideoTrackList Object:
Note: The first available VideoTrack object is index 0 |
VideoTrack Object | Represents a video track. VideoTrack Object Properties:
|
❮ مرجع DOM الصوت / الفيديو HTML