diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-03-06 21:41:25 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-03-06 21:41:25 -0800 |
commit | 5b0d022187db5f1787ea61d5a6a4be3598808c5f (patch) | |
tree | acc204a33b3ffc337918d7299e8272a3bbf224e4 /src | |
parent | aeacaf6c99d1a65b57976f9cf926d9ca50fa6e0e (diff) | |
download | dsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.tar.gz dsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.tar.bz2 dsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.zip |
Try to go to next song instead on error
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/ChromeCastController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/ChromeCastController.java b/src/github/daneren2005/dsub/service/ChromeCastController.java index 588f896d..dccadd59 100644 --- a/src/github/daneren2005/dsub/service/ChromeCastController.java +++ b/src/github/daneren2005/dsub/service/ChromeCastController.java @@ -411,7 +411,9 @@ public class ChromeCastController extends RemoteController { } 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); + Log.e(TAG, "Idle due to unknown error"); + downloadService.setPlayerState(PlayerState.COMPLETED); + downloadService.next(); } else { Log.w(TAG, "Idle reason: " + mediaStatus.getIdleReason()); downloadService.setPlayerState(PlayerState.IDLE); |