Fix position on playback stop reporting when skipping to playback end
This commit is contained in:
committed by
Niels van Velzen
parent
de883fb709
commit
f21a9022d5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user