Permalink
Browse files

Upon loading a playlist automatically start playing the queue if not …

…already - This cuts down the amount of interactions required when driving offroad
  • Loading branch information...
anthony-mills committed Jan 18, 2017
1 parent c085bc2 commit 87002930938cabfa8a60f673bb1c1535360d8d69
Showing with 7 additions and 0 deletions.
  1. +7 −0 www/js/controllers.js
@@ -676,6 +676,13 @@ angular.module('landcruiser.controllers', [])
mpdClient.loadPlaylistIntoQueue(playlistPath);
growl.success("Playlist loaded to queue");
// Get the play state if music is not already playing start the playlist
var playState = mpdClient.getPlaystate();
if ( playState === 'stop' ) {
mpdClient.play();
}
}
})

0 comments on commit 8700293

Please sign in to comment.