Thuộc tính video videoTracks
Thí dụ
Nhận số lượng bản nhạc video có sẵn:
var x = document.getElementById("myVideo").videoTracks.length;
Định nghĩa và Cách sử dụng
Thuộc tính videoTracks trả về một đối tượng VideoTrackList.
Đối tượng VideoTrackList đại diện cho các đoạn video có sẵn cho video.
Mỗi đoạn video có sẵn được đại diện bởi một Đối tượng VideoTrack.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
videoTracks | Not supported | Not supported | Not supported | Not supported | Not supported |
Cú pháp
videoObject.videoTracks
Giá trị trả lại
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:
|
❮ Đối tượng Video