From c2d4b6d2536bd9ad801549372600a8d1b32e6506 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 24 Mar 2014 18:13:26 -0700 Subject: #315 Make Chromecast obey repeat rules --- src/github/daneren2005/dsub/service/ChromeCastController.java | 2 +- src/github/daneren2005/dsub/service/DownloadService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()); } -- cgit v1.2.3