Skip to content

Commit

Permalink
Fix skipping to end of video reports wrong end time
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Nov 10, 2024
1 parent 15554bd commit 91a27ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ public void seek(long pos, boolean skipToNext) {
if (skipToNext && pos >= (getDuration() - 100)) {
// Since we've skipped ahead, set the current position so the PlaybackStopInfo will report the correct end time
mCurrentPosition = getDuration();
// Make sure we also set the seek position so it won't get overwritten in refreshCurrentPosition()
mSeekPosition = mCurrentPosition;
itemComplete();
return;
}
Expand Down

0 comments on commit 91a27ee

Please sign in to comment.