-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Captions regression in 3.3.0 #3850
Comments
It looks like this is a result of cdeffbb |
Maybe this related to #3741? |
That might be the case, yes. Reverting the line of code that seems to be causing this also looks to fix that issue. |
@theodab Did you find a solution for this? |
Yeah, I believe so. I just want to take some time first to hopefully figure out whether or not this is going to break some other use case. |
Another example with the same error:
|
I have seen that this issue is also related to #3762 |
This changes the TTML parser to not allow cue regions to be inherited to the children of the element the region was originally assigned on, except for the purposes of styles (colors, etc). To allow regions on elements "above" the cues in TTML, such as the <body> or <div> elements, this also changes the TTML parser to render the full structure of the TTML file as a tree of cues. The end result will be a single cue representing the <body>, with children representing the <div> elements inside it, and those <divs> will have children that represent the actual cues. Now that our text displayer can intelligently update child cues as they enter or leave the display window, this approach should be possible. Closes #3850 Closes #3741 Backported to v3.1.x Change-Id: Ia8d750daa06920610c04e9b26e29d2d304eaf8a9
This changes the TTML parser to not allow cue regions to be inherited to the children of the element the region was originally assigned on, except for the purposes of styles (colors, etc). To allow regions on elements "above" the cues in TTML, such as the <body> or <div> elements, this also changes the TTML parser to render the full structure of the TTML file as a tree of cues. The end result will be a single cue representing the <body>, with children representing the <div> elements inside it, and those <divs> will have children that represent the actual cues. Now that our text displayer can intelligently update child cues as they enter or leave the display window, this approach should be possible. Closes #3850 Closes #3741 Backported to v3.2.x Change-Id: Ia8d750daa06920610c04e9b26e29d2d304eaf8a9
This changes the TTML parser to not allow cue regions to be inherited to the children of the element the region was originally assigned on, except for the purposes of styles (colors, etc). To allow regions on elements "above" the cues in TTML, such as the <body> or <div> elements, this also changes the TTML parser to render the full structure of the TTML file as a tree of cues. The end result will be a single cue representing the <body>, with children representing the <div> elements inside it, and those <divs> will have children that represent the actual cues. Now that our text displayer can intelligently update child cues as they enter or leave the display window, this approach should be possible. Closes #3850 Closes #3741 Change-Id: Ia8d750daa06920610c04e9b26e29d2d304eaf8a9
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.3.0
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
master
?I can on the nightly demo
Are you using the demo app or your own custom app?
Custom
If custom app, can you reproduce the issue using our demo app?
Yes
What browser and OS are you using?
Brave, Linux
What are the manifest and license server URIs?
https://bin.snopyta.org/?b692293141083c43#7jpXJvfKgK6JMxQ8JZFpHqkmTbtUmm6gV2QkqcZRtxCU
What configuration are you using? What is the output of
player.getConfiguration()
?Default / Demo
What did you do?
What did you expect to happen?
When the captions have 2 lines, they shouldn't be overlapped.
What actually happened?
The captions appear overlapped.
The text was updated successfully, but these errors were encountered: