-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(HLS): Correctly identify webvtt subtitles with cmft extension #7791
Conversation
Incremental code coverage: 100.00% |
5119920
to
fa2af56
Compare
I don't see that extension referenced anywhere in the PR. Is something missing? |
@@ -2935,6 +2935,12 @@ shaka.hls.HlsParser = class { | |||
|
|||
if (!mimeType) { | |||
mimeType = await this.guessMimeType_(type, codecs, segments); | |||
|
|||
if (type == shaka.util.ManifestParserUtils.ContentType.TEXT && |
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.
I can't tell what this logic is doing. Can you please add an explanatory comment?
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.
Approved after a side conversation about the extension. But I would still like to see a comment added explaining the new logic, specifically answering the question "why?"
Fixes #7766