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 #3783 captions not working after a period transition on live DASH streams #3801

Merged
merged 3 commits into from
Dec 13, 2021

Conversation

caridley
Copy link
Contributor

@caridley caridley commented Dec 9, 2021

Description

Fixes #3783

Embedded CEA-608 captions don't work on multi period live DASH DAI streams after new periods appear in the manifest because commas are appended the streams originalId string, which disrupts some stream matching code in text_engine.js

The problem has been resolved by preventing makeTextStreamsForClosedCaptions() from altering the PeriodCombiner.textStreams_ array.

Screenshots (optional)

NA

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have signed the Google CLA https://cla.developers.google.com
  • My code follows the style guidelines of this project
  • [NA] I have made corresponding changes to the documentation
  • [No] I have added tests that prove my fix is effective or that my feature works
  • I have verified my change on multiple browsers on different platforms
  • I have run ./build/all.py and the build passes
  • I have run ./build/test.py and all tests pass

if (id == this.selectedClosedCaptionId_) {
// With multiperiod live DASH DAI streams a comma is appended to the
// selectedClosedCaptionId string each time a new period appears in
// the manifest e.g. "CC1,,," while the id value remains "CC1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is either a bug in the caption parser or your content. I don't think this should be handled here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok found and fixed the root cause

@caridley caridley requested a review from TheModMaker December 11, 2021 00:00
@joeyparrish joeyparrish merged commit 6e0737e into shaka-project:master Dec 13, 2021
joeyparrish pushed a commit that referenced this pull request Jan 5, 2022
…streams (#3801)

Embedded CEA-608 captions don't work on multi period live DASH DAI streams after new periods appear in the manifest because commas are appended the streams originalId string, which disrupts some stream matching code in text_engine.js

The problem has been resolved by preventing makeTextStreamsForClosedCaptions() from altering the PeriodCombiner.textStreams_ array.

Fixes #3783

Change-Id: I0b99df9cf081a5ad340ac16344f5f0240633d683
joeyparrish pushed a commit that referenced this pull request Jan 5, 2022
…streams (#3801)

Embedded CEA-608 captions don't work on multi period live DASH DAI streams after new periods appear in the manifest because commas are appended the streams originalId string, which disrupts some stream matching code in text_engine.js

The problem has been resolved by preventing makeTextStreamsForClosedCaptions() from altering the PeriodCombiner.textStreams_ array.

Fixes #3783

Change-Id: If34ff360dee76f03badef6a5b6c89751e1986285
joeyparrish pushed a commit that referenced this pull request Jan 5, 2022
…streams (#3801)

Embedded CEA-608 captions don't work on multi period live DASH DAI streams after new periods appear in the manifest because commas are appended the streams originalId string, which disrupts some stream matching code in text_engine.js

The problem has been resolved by preventing makeTextStreamsForClosedCaptions() from altering the PeriodCombiner.textStreams_ array.

Fixes #3783

Change-Id: I9abce3f34bf45d506325c13cb06c550d556c2d62
@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
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Captions not working after a period transition on live DASH streams
3 participants