-
Couldn't load subscription status.
- Fork 4
Open
Description
Is it possible to add captioning to the HTML media elements?
HTML has the <track> element to accommodate this, which you can add as a child element to <video> and <audio>. So I’m wondering if it could be possible to write something like:
which would compile to something like:
<video controls src="/path/to/video.webv">
<track kind="captions" srclang="en" src="/path/to/video.en.vtt" />
Alt Text
Download the
<a href="/path/to/video.webm">WEBM video</a>, and the
<a href="/path/to/video.en.vtt">English subtitles</a>.
</video>Captioning media elements is a pretty important accessibility features which allows users who have trouble following along the audio track for some reason and gives them an option to read subtitles as the video plays.
Note. I left a comment on the commonmark thread regarding this
Metadata
Metadata
Assignees
Labels
No labels