-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Display multiple subtitles at once #5798
Comments
👋 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. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is being fixed by #5817. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Native HTML5 seams to allow displaying multiple text tracks at once. However video.js emulated text tracks fail to allow doing this.
I have tried displaying multiple tracks programmatically using
toggleTracks: function() { let tracks = videoPlayer.textTracks(); for (let i = 0; i < tracks.length; i++) { const track = tracks[i]; if(this.showingTracks){ track.mode = 'showing'; continue; } track.mode = 'hidden'; } }
Results
Expected
I expect to see the subtitles overlaying each other allowing styling if necessary to move them to desired location.
See https://iandevlin.com/html5/track/index-multiple.html
Actual
Please describe what actually happened.
Only the first track set to
showing
is displayed (as documentation suggests)Error output
If there are any errors at all, please include them here.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.4.1
The text was updated successfully, but these errors were encountered: