Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captioning #17

Open
runarberg opened this issue Dec 14, 2023 · 0 comments
Open

Captioning #17

runarberg opened this issue Dec 14, 2023 · 0 comments

Comments

@runarberg
Copy link

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:

![Alt text](/path/to/video.webv en="/path/to/video.en.vtt")

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant