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

Add support for the <track> tag -- for subtitles / captioning #45

Open
kjcole opened this issue Sep 10, 2024 · 0 comments
Open

Add support for the <track> tag -- for subtitles / captioning #45

kjcole opened this issue Sep 10, 2024 · 0 comments

Comments

@kjcole
Copy link

kjcole commented Sep 10, 2024

I often caption my videos using VTT captions. T'would be nice if the video directive supported the <track> tag to make use of it. Here's an example taken from W3 Schools:

<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>
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