video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Chapters do not support multiple languages

Open anthonypwinning opened this issue 9 months ago • 2 comments

VideoJS happily supports having captions in multiple languages:

<track kind="captions" src="//example.com/path/to/captions_en.vtt" srclang="en" label="English" default>
<track kind="captions" src="//example.com/path/to/captions_fr.vtt" srclang="fr" label="French">

However, if you try to do something similar with chapters, it simply does not work.

<track kind="chapters" src="//example.com/path/to/chapters_en.vtt" srclang="en" label="English" default>
<track kind="chapters" src="//example.com/path/to/chapters_fr.vtt" srclang="fr" label="French">

Chapters only work with a single chapter track. Since subtitles work with multiple languages, I believe chapters should also offer multi-lingual support.

anthonypwinning avatar Feb 28 '25 01:02 anthonypwinning

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Feb 28 '25 01:02 welcome[bot]

Here would be the place to start if you are interested in implementing this. Should chapters follow the UX language (player.language()) or the selected captions language? I can see an argument for both.

mister-ben avatar Mar 11 '25 13:03 mister-ben