Fix position on playback stop reporting when skipping to playback end

This commit is contained in:
Niels van Velzen
2024-11-05 13:58:59 +01:00
committed by Niels van Velzen
parent de883fb709
commit f21a9022d5

View File

@@ -886,6 +886,8 @@ public class PlaybackController implements PlaybackControllerNotifiable {
// Stop playback when the requested seek position is at the end of the video
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();
itemComplete();
return;
}