androidx / androidx/media

Overlapping subtitles with VTT file.

Open
#2,237 2 comments 3 reactions 1 assignee View on GitHub

@icbaker is already working on this.

Since Mar 14, 2025.

bug
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

It is pretty common for anime subtitles to have times that overlap. This leads to ExoPlayer showing the text of the subtitle on top of the previous subtitle, making them unreadable. Is there a way to fix that?

This is an small sample of the vtt file that shows the issue (whole file attached):

01:56.260 --> 01:59.400
<i>They are known as "trash games."</i>

01:59.720 --> 02:02.260
Not Trash Games

01:59.720 --> 02:06.730
Semi-Redeemable Trash Games

02:00.100 --> 02:04.230
<i>Although most people 
rightfully despise trash games,</i>

02:01.550 --> 02:06.730
Never Play Again

02:04.230 --> 02:06.730
<i>there are those who gleefully seek them out.</i>

eng-2 vtt.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.