-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop Playhead.onSeeking_ from infinitely recursing
Playhead.onSeeking_ assumes that seeking is nearly instant; thus, it has 0.001s tolerance. That works fine on most platforms, but on some slow platforms (e.g. v1 Chromecasts), this can actually be a problem. Specifically, it can cause them to get stuck in a loop of repeatedly seeking, when playing HLS livestreams. This changes Playhead.onSeeking_ so that it will only attempt to undo a seek once every second. This way, if running on a slow platform, it won't get stuck trying to seek to start time. Closes #1411 Change-Id: Ia4fa6da8bcd90eb04b80d80c3f793bba2a7f382d
- Loading branch information
1 parent
31be147
commit 25a32ea
Showing
2 changed files
with
97 additions
and
2 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