video.js
video.js copied to clipboard
Chapters do not support multiple languages
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.
👋 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.
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.