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
fix(toM3u8): set label for vttPlaylist from label instead of lang #161
Conversation
Codecov Report
@@ Coverage Diff @@
## main #161 +/- ##
=======================================
Coverage 94.34% 94.34%
=======================================
Files 19 19
Lines 778 778
Branches 242 242
=======================================
Hits 734 734
Misses 44 44
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
957dd00
to
bd1319c
Compare
bd1319c
to
419aee1
Compare
I believe this isn't the spec-compliant way of labeling text tracks. The expected way is with a Label element. there's some direction on how to do it with a label element here videojs/video.js#6960 (comment) |
I agree with your comment, however this fix is exactly to make the Label element work. E.g. without the fix the following is not working properly - the Label element is not read,
|
What do you think? I think this change is according to the specs |
Sorry, haven't had a chance to test it yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally got around to this. Confirmed that this does what's expected.
I also found a test source with a labeled text track https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel-hoh-subs.ism/.mpd (though, VHS won't be able to play it, since VHS doesn't support IMSC currently).
Fix the issue when the subtitles'
label
property was set from lang instead of label