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

Incorrect TTML positioning #594

Merged
merged 2 commits into from
Nov 16, 2016

Conversation

birme
Copy link
Contributor

@birme birme commented Nov 16, 2016

This PR contains a fix with incorrect TTML positioning. When converting tts:origin for example "10% 10%" we need to set the VTTCue.snapToLines to false as according to spec:

A boolean indicating whether the line is an integer number of lines (using the line dimensions of the first line of the cue), or whether it is a percentage of the dimension of the video. The flag is set to true when lines are counted, and false otherwise.

This PR also contains the required Externs for VTTCue / TextTrackCue properties that otherwise was not included in the compiled version and default values was used instead.

(This PR replaces the git mess I made in #591, sorry about that)

…n the compiled version causing VTT default values to be incorrectly used instead.
…nes to false to indicate that cue.line is a percentage value.
@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Nov 16, 2016
@joeyparrish joeyparrish self-assigned this Nov 16, 2016
@shaka-bot
Copy link
Collaborator

Testing in progress...

@shaka-bot
Copy link
Collaborator

All tests passed!

@joeyparrish
Copy link
Member

Looks good to me. Thanks!

@joeyparrish joeyparrish merged commit 1288111 into shaka-project:master Nov 16, 2016
joeyparrish pushed a commit that referenced this pull request Nov 30, 2016
A number of TextTrackCue properties were not included in the externs and caused VTT default values to be used instead.  When converting TTML tts:origin values, we need to set VTTCue.snapToLines to false to indicate that cue.line is a percentage value.
@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 type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants