aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-06 21:41:25 -0800
committerScott Jackson <daneren2005@gmail.com>2014-03-06 21:41:25 -0800
commit5b0d022187db5f1787ea61d5a6a4be3598808c5f (patch)
treeacc204a33b3ffc337918d7299e8272a3bbf224e4 /src/github/daneren2005
parentaeacaf6c99d1a65b57976f9cf926d9ca50fa6e0e (diff)
downloaddsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.tar.gz
dsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.tar.bz2
dsub-5b0d022187db5f1787ea61d5a6a4be3598808c5f.zip
Try to go to next song instead on error
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/ChromeCastController.java4
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);