비디오 textTracks 속성
예시
사용 가능한 텍스트 트랙의 수를 가져옵니다.
var x = document.getElementById("myVideo").textTracks.length;
정의 및 사용
textTracks 속성은 TextTrackList 객체를 반환합니다.
TextTrackList 개체는 비디오에 사용할 수 있는 텍스트 트랙을 나타냅니다.
사용 가능한 각 텍스트 트랙은 TextTrack 개체로 표시됩니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
textTracks | Yes | 9.0 | Not supported | 6.0 | Yes |
통사론
videoObject.textTracks
반환 값
Type | Description |
---|---|
TextTrackList Object | Represents the available text tracks for the the video. TextioTrackList Object:
Note: The first available TextTrack object is index 0 |
TextTrack Object | Represents a text track. TextTrack Object Properties:
|
❮ 비디오 개체