You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
<videocontrolssrc="/path/to/video.webv"><trackkind="captions" srclang="en" src="/path/to/video.en.vtt" />
Alt Text
Download the
<ahref="/path/to/video.webm">WEBM video</a>, and the
<ahref="/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.
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:
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
The text was updated successfully, but these errors were encountered: