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 |
|---|---|---|
| .. | ||
| ad-responses | Loading commit data... | |
| amr | Loading commit data... | |
| binary | Loading commit data... | |
| bitmap | Loading commit data... | |
| download-actions | Loading commit data... | |
| dvbsi | Loading commit data... | |
| flac | Loading commit data... | |
| flv | Loading commit data... | |
| id3 | Loading commit data... | |
| mka | Loading commit data... | |
| mkv | Loading commit data... | |
| mp3 | Loading commit data... | |
| mp4 | Loading commit data... | |
| mpd | Loading commit data... | |
| offline | Loading commit data... | |
| ogg | Loading commit data... | |
| rawcc | Loading commit data... | |
| smooth-streaming | Loading commit data... | |
| ssa | Loading commit data... | |
| subrip | Loading commit data... | |
| ts | Loading commit data... | |
| ttml | Loading commit data... | |
| tx3g | Loading commit data... | |
| vp9 | Loading commit data... | |
| wav | Loading commit data... | |
| webvtt | Loading commit data... |