오디오 textTracks 속성
예시
사용 가능한 텍스트 트랙의 수를 가져옵니다.
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:
|
❮ 오디오 개체