Thuộc tính âm thanh audioTracks
Thí dụ
Nhận số lượng bản âm thanh có sẵn:
var x = document.getElementById("myAudio").audioTracks.length;
Định nghĩa và Cách sử dụng
Thuộc tính audioTracks trả về một đối tượng AudioTrackList.
Đối tượng AudioTrackList đại diện cho các rãnh âm thanh có sẵn cho âm thanh.
Mỗi bản âm thanh có sẵn được đại diện bởi một Đối tượng AudioTrack.
Hỗ trợ trình duyệt
Property | |||||
---|---|---|---|---|---|
audioTracks | Not supported | Not supported | Not supported | Not supported | Not supported |
Cú pháp
audioObject.audioTracks
Giá trị trả lại
Type | Description |
---|---|
AudioTrackList Object | Represents the available audio tracks for the audio. AudioTrackList Object:
Note: The first available AudioTrack object is index 0 |
AudioTrack Object | Represents an audio track. AudioTrack Object Properties:
|
❮ Đối tượng âm thanh