Support TTML extent & origin on <p> & <div> tags
Open
enhancement
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### Use case description
TTML2 allows origin and extent to be declared on `
` and `
` tags:
https://www.w3.org/TR/2018/REC-ttml2-20181108/#style-attribute-extent-special-usage
https://www.w3.org/TR/2018/REC-ttml2-20181108/#style-attribute-extent-special-usage
Currently `TtmlDecoder` only parses extent & origin from region tags (TTML 1 only allowed this):
https://github.com/google/ExoPlayer/blob/fd24df3b262dca1bc0b429421ba334fa127af3cf/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/TtmlDecoder.java#L322
### Proposed solution
Update `TtmlDecoder#parseNode` to consider `tts:origin` and `tts:extent` attributes.
Contributor guide
Assessment
This issue has not been assessed yet.