diff options
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/ChromeCastController.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/ChromeCastController.java b/src/github/daneren2005/dsub/service/ChromeCastController.java index e8edb0ba..588f896d 100644 --- a/src/github/daneren2005/dsub/service/ChromeCastController.java +++ b/src/github/daneren2005/dsub/service/ChromeCastController.java @@ -410,6 +410,8 @@ public class ChromeCastController extends RemoteController { downloadService.next(); } else if(mediaStatus.getIdleReason() == MediaStatus.IDLE_REASON_INTERRUPTED) { downloadService.setPlayerState(PlayerState.PREPARING); + } else if(mediaStatus.getIdleReason() == MediaStatus.IDLE_REASON_ERROR) { + startSong(downloadService.getCurrentPlaying(), downloadService.getPlayerState() == PlayerState.STARTED, 0); } else { Log.w(TAG, "Idle reason: " + mediaStatus.getIdleReason()); downloadService.setPlayerState(PlayerState.IDLE); |