HTML 사전

track

설명

Introduced in HTML 5
H
TML 5에서 도입되었음

The track is used to specify text tracks for HTML5 media elements ( <audio> and <video>).

HTML5에서 <audio> 나 <video>등의 미디어 요소 내의 트랙을 지정할 때 사용한다.

Usage Context

Content categories None
Permitted content None, this is a void element.
Tag omission As it is a void element, the start tag must be present
and the end tag must not be present.
Permitted parent elements A media element, before any flow content.
Normative document HTML5, section 4.8.6

속성

이 엘리먼트는 전역속성을 지원한다.
Like all other HTML elements, this element supports the global attributes.

default

기본 트랙

This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one track element per media element.

이 속성은 웹브라우서 사용자가 특별히 다른 트랙을 재생하겠다고 지정하지 않는한, 기본적으로 재생할 트랙을 지정한다. 한 미디어 요소에 하나만 지정할 수 있다.

kind

다정함.ㅋㅋㅋㅋ 종류

Kind of text track. The following keywords are allowed:

  • subtitles: A transcription or translation of the dialogue.
  • captions: A transcription or translation of the dialogue or other sound effects. Suitable for users who are deaf or when the sound is muted.
  • descriptions: Textual descriptions of the video content. Suitable for users who are blind.
  • chapters: Chapter titles, intended to be used when the user is navigating the media resource.
  • metadata: Tracks used by script. Not visible to the user.

kind

문자 트랙의 종류. 아래와 같은 종류들을 설정 할 수 있다.

  • 자막: 대화의 기록이나 번역
  • 청각 자막: 특히 음소거를 기킬 경우나 청각장애자를 위하여 제작된 대화나 다른 소리에 관한 기록이나 번역. 
  • 설명: 영상에 대한 문자로 된 설명이며 시각장애자를 위해 제작되었다.
  • 소제목: 보통 여러 미디어 자료들을 둘러볼때 사용되는 쳅터의 소제목.
  • 메타정보: 사용자에게 보이지 않고, 스크립트언어에 사용되는 트랙들.

label

A user-readable title of the text track Used by the browser when listing available text tracks.

웹브라우저 사용자에게 들을 수 있는 트랙의 목록을 보여줄 때 사용하는 트랙 제목. 

src

Address of the track. Must be a valid URL. This attribute must be defined.

트랙의 URL주소. 필수요소이다.

srclang

소스언어

Language of the track text data.

문자 트랙의 언어.

예제

Please see the <audio> and <video> pages for examples on <track>.

<audio>나 <video>요소의 예제를 참고하라. 

DOM Interface

This element implements the HTMLTrackElement interface.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원 -- --
Unimplemented (
see bug 629350 )
-- -- --
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원 -- -- -- -- --

참고

댓글

댓글 본문
버전 관리
김나솔
현재 버전
선택 버전
graphittie 자세히 보기