Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,13 @@ public void play() {
}
}

if (isStopped()) {
// Some phones suspend a paused player after 10 minutes. This causes the player to
// enter STATE_IDLE, causing playback to fail. So we try to recover from that here.
setRecovery();
reloadPlayQueueManager();
}

simpleExoPlayer.play();
saveStreamProgressState();
}
Expand Down
Loading