We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6daa1 commit f2f24d5Copy full SHA for f2f24d5
lib/text/ttml_text_parser.js
@@ -544,8 +544,10 @@ shaka.text.TtmlTextParser = class {
544
545
cue.textAlign = Cue.textAlign[align.toUpperCase()];
546
} else {
547
- // Default value is START: https://bit.ly/32OGmvo
548
- cue.textAlign = Cue.textAlign.START;
+ // Default value is START in the TTML spec: https://bit.ly/32OGmvo
+ // But to make the subtitle render consitent with other players and the
549
+ // shaka.text.Cue we use CENTER
550
+ cue.textAlign = Cue.textAlign.CENTER;
551
}
552
553
const displayAlign = TtmlTextParser.getStyleAttribute_(
0 commit comments