Merge pull request #13390 from priomsrb/fix-playback-after-idle
Fix playback not working after player enters idle state
This commit is contained in:
commit
936d5d27ff
1 changed files with 7 additions and 0 deletions
|
|
@ -1752,6 +1752,13 @@ public final class Player implements PlaybackListener, Listener {
|
|||
}
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue