The tts:textAlign property only applies to <p> elements, which correspond 1:1 with ExoPlayer Cue objects, so we can use Cue.textAlignment to store this info instead of encoding it in the span-styled text. This will mean that TTML subtitles used with SubtitleView#setApplyEmbeddedStyles(false) will start respecting the tts:textAlign properties from the source data (currently this information is stripped when we remove all span styling). I think this is working-as-intended, we respect alignment of other subtitle types (e.g. WebVTT) when applyEmbeddedStyles=false. We also respect all other 'positioning' related properties in this case e.g. Cue.position and Cue.line. PiperOrigin-RevId: 310895499
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| bitmap_percentage_region.xml | Loading commit data... | |
| bitmap_pixel_region.xml | Loading commit data... | |
| bitmap_unsupported_region.xml | Loading commit data... | |
| chain_multiple_styles.xml | Loading commit data... | |
| font_size.xml | Loading commit data... | |
| font_size_empty.xml | Loading commit data... | |
| font_size_invalid.xml | Loading commit data... | |
| font_size_no_unit.xml | Loading commit data... | |
| frame_rate.xml | Loading commit data... | |
| inherit_and_override_style.xml | Loading commit data... | |
| inherit_global_and_parent.xml | Loading commit data... | |
| inherit_multiple_styles.xml | Loading commit data... | |
| inherit_style.xml | Loading commit data... | |
| inline_style_attributes.xml | Loading commit data... | |
| multiple_regions.xml | Loading commit data... | |
| no_underline_linethrough.xml | Loading commit data... | |
| rubies.xml | Loading commit data... | |
| text_align.xml | Loading commit data... | |
| text_combine.xml | Loading commit data... | |
| vertical_text.xml | Loading commit data... |