diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-03-24 18:13:26 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-03-24 18:13:26 -0700 |
commit | c2d4b6d2536bd9ad801549372600a8d1b32e6506 (patch) | |
tree | 396e9ad1234e23d31d5766264cbf6cfdfd0da293 /src | |
parent | 5748aed2408a4e5c03b202fd204e78ad1cff23aa (diff) | |
download | dsub-c2d4b6d2536bd9ad801549372600a8d1b32e6506.tar.gz dsub-c2d4b6d2536bd9ad801549372600a8d1b32e6506.tar.bz2 dsub-c2d4b6d2536bd9ad801549372600a8d1b32e6506.zip |
#315 Make Chromecast obey repeat rules
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/ChromeCastController.java | 2 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/ChromeCastController.java b/src/github/daneren2005/dsub/service/ChromeCastController.java index f2a576af..0dbb40ca 100644 --- a/src/github/daneren2005/dsub/service/ChromeCastController.java +++ b/src/github/daneren2005/dsub/service/ChromeCastController.java @@ -454,7 +454,7 @@ public class ChromeCastController extends RemoteController { case MediaStatus.PLAYER_STATE_IDLE: if (mediaStatus.getIdleReason() == MediaStatus.IDLE_REASON_FINISHED) { downloadService.setPlayerState(PlayerState.COMPLETED); - downloadService.next(); + downloadService.onSongCompleted(); } else if (mediaStatus.getIdleReason() == MediaStatus.IDLE_REASON_INTERRUPTED) { if (downloadService.getPlayerState() != PlayerState.PREPARING) { downloadService.setPlayerState(PlayerState.PREPARING); diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 7cf76e4f..8220f6f0 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -870,7 +870,7 @@ public class DownloadService extends Service { } } - private void onSongCompleted() { + public void onSongCompleted() { play(getNextPlayingIndex()); } |