HTML <track> kind eigenschap

Definitie en gebruik

kind De eigenschap bepaalt het type tekstspoor.

Voorbeeld

Video met twee ondertiteltracks:

<video width="320" height="240" controls>
  <source src="forrest_gump.mp4" type="video/mp4">
  <source src="forrest_gump.ogg" type="video/ogg">
  <track src="fgsubtitles_en.vtt" kind="subtitles" srclang="en" label="English">
  <track src="fgsubtitles_no.vtt" kind="subtitles" srclang="no" label="Norwegian">
</video>

Syntax

<track src="subtitles_en.vtt" kind="subtitles" srclang="en">

Attribute value

Value Description
captions This track defines translations of dialogue and sound effects (for deaf users).
chapters This track defines chapter titles (for browsing media resources).
descriptions This track defines the textual description of video content (for blind users).
metadata This track defines the content used by the script. Not visible to users.
subtitles This track defines subtitles, used to display subtitles in videos.

Browser support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
23.0 10.0 31.0 6.0 12.1