Skip to content
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): IMSC1 subtitles not working in a HLS stream #4942

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Jan 30, 2023

Fixes #4350

The current code initially parses the subtitle track as text/vtt (mimetype) since it has no codec. Subsequently, the stpp.ttml.im1t codec is assigned but the mimetype of text/vtt is not changed to application/mp4. This PR changes this so that once the codec is assigned, the mimetype is recalculated.

@avelad avelad added type: bug Something isn't working correctly component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release labels Jan 30, 2023
@avelad avelad added this to the v4.4 milestone Jan 30, 2023
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@joeyparrish
Copy link
Member

Could you add some explanation of the problem and solution in the PR description? I don't see anything wrong with the fix, but I don't understand why it's the fix or what was broken.

@avelad
Copy link
Collaborator Author

avelad commented Jan 30, 2023

Could you add some explanation of the problem and solution in the PR description? I don't see anything wrong with the fix, but I don't understand why it's the fix or what was broken.

Done!

@joeyparrish joeyparrish merged commit 974f5dc into shaka-project:main Jan 30, 2023
@avelad avelad deleted the imsc1-hls branch January 30, 2023 17:31
joeyparrish pushed a commit that referenced this pull request Jan 30, 2023
Fixes #4350

The current code initially parses the subtitle track as text/vtt
(mimetype) since it has no codec. Subsequently, the stpp.ttml.im1t codec
is assigned but the mimetype of text/vtt is not changed to
application/mp4. This PR changes this so that once the codec is
assigned, the mimetype is recalculated.
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IMSC1 subtitles not working in a HLS stream
2 participants