트랙 종류 속성
예시
텍스트 트랙의 종류 가져오기:
var x = document.getElementById("myTrack").kind;
x 의 결과는 다음과 같을 수 있습니다.
subtitles
정의 및 사용
종류 속성은 트랙의 종류 속성 값을 설정하거나 반환합니다.
종류 속성은 텍스트 트랙의 종류를 지정합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
kind | Yes | 10.0 | Not supported | Not supported | Yes |
통사론
종류 속성을 반환합니다.
trackObject.kind
종류 속성을 설정합니다.
trackObject.kind = "captions|chapters|descriptions|metadata|subtitles"
속성 값
Value | Description |
---|---|
captions | The track defines translation of dialogue and sound effects (suitable for deaf users) |
chapters | The track defines chapter titles (suitable for navigating the media resource) |
descriptions | The track defines a textual description of the video content (suitable for blind users) |
metadata | The track defines content used by scripts. Not visible for the user |
subtitles | The track defines subtitles, used to display subtitles in a video |
기술적 세부 사항
반환 값: | 텍스트 트랙의 종류를 나타내는 String |
---|
더 많은 예
예시
텍스트 트랙의 종류 설정:
document.getElementById("myTrack").kind = "chapters";
관련 페이지
HTML 참조: HTML <track> 종류 속성
❮ 추적 개체