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 #7909

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

darrinliam
Copy link

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.

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

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