-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add seeking support to the SubtitleExtractor
SubtitleExtractor is using IndexSeekMap with only one position to indicate that its output is seekable. SubtitleExtractor is keeping Cues in memory anyway so more seek points are not needed. SubtitleExtractor gets notified about seek occurrence through seek() method. Inside that method extractor saves seekTimeUs, and on the next call to read() extractor outputs all cues that should be displayed at this time and later. PiperOrigin-RevId: 395477127
- Loading branch information
Showing
2 changed files
with
182 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters