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

feat: Save CEA708 caption cues on all windows when deleting/clearing windows #7908

Closed
wants to merge 2 commits into from

Conversation

darrinliam
Copy link
Contributor

Addresses #7907

While Shaka's CEA708 parser currently creates each simultaneous subtitle cue window individually via defineWindow_(), Shaka emits the simultaneous captions all at once via deleteWindows_(). Only the last cue with the same start/end time is saved. The others are overwritten by deleteWindows_().

This PR addresses the above asymmetry by saving all cues on windows with the same start/end time when deleting/clearing windows. A slight refactoring was needed to use arrays to hold more than one parsed caption when handling C1 group data.

Copy link

google-cla bot commented Jan 17, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@darrinliam darrinliam changed the title Save CEA708 caption cues on all windows when deleting/clearing windows Feat: Save CEA708 caption cues on all windows when deleting/clearing windows Jan 17, 2025
@darrinliam darrinliam changed the title Feat: Save CEA708 caption cues on all windows when deleting/clearing windows feat: Save CEA708 caption cues on all windows when deleting/clearing windows Jan 17, 2025
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@darrinliam
Copy link
Contributor Author

Closing. I will open a new PR shortly using a different git user.

@darrinliam darrinliam closed this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants