another attempt at fixing skipping

for issues going between players (background, etc)
This commit is contained in:
polymorphicshade 2021-02-21 14:16:12 -07:00
parent 8011192dd3
commit 3fcf608390

View file

@ -701,6 +701,8 @@ public final class Player implements
// (to disable/enable video stream or to set quality)
setRecovery();
reloadPlayQueueManager();
stopProgressLoop();
startProgressLoop();
}
setupElementsVisibility();
@ -4256,6 +4258,11 @@ public final class Player implements
}
public VideoSegment getSkippableSegment(final int progress) {
// currentItem may get set to something later (asynchronously)
if (currentItem == null) {
return null;
}
final VideoSegment[] videoSegments = currentItem.getVideoSegments();
if (videoSegments == null) {
return null;