public void PlayTracks() { foreach (var track in _playlist) { _player.PlayTrack(track); } }
public void PlayNextTrack() { logger.Debug("Dequeuing next track"); var nextToPlay = queueManager.Dequeue(); if (nextToPlay == null) { logger.Debug("Asking AutoPlay for next track"); nextToPlay = autoplayer.FindTrack(); if (nextToPlay != null) { logger.Debug("Track {0} found by autoplay", nextToPlay.ToLoggerFriendlyTrackName()); } } callbackClient.QueueChanged(queueManager.GetAll()); if (nextToPlay != null) { musicPlayer.PlayTrack(nextToPlay); } }