Exemple #1
0
        public void JumpToPlaylistIndex(int playlistIndex)
        {
            Log.Debug("Jumping to index in playlist " + playlistIndex);
            this.Playlist.CurrentPosition = playlistIndex - 1;
            AudioInteractor.StopSong();

            //this.Play();
        }
Exemple #2
0
        public void Back()
        {
            Log.Debug("Back-ing");

            Playlist.MoveBackOneSong();
            Playlist.MoveBackOneSong();
            AudioInteractor.StopSong();
        }
Exemple #3
0
        public void Next()
        {
            Log.Debug("Next-ing.");
            AudioInteractor.StopSong();
            //Stop();

            /*Playlist.MoveToNextSong();
             * Play();*/
        }
Exemple #4
0
        public void JumpToPlaylistByPath(string path)
        {
            Log.Debug("Jumping to song " + path + " in playlist.");

            var found = this.Playlist.Where(X => X.FullPath == path).LastOrDefault();

            if (found == null)
            {
                return;
            }

            var playlistIndex = this.Playlist.LastIndexOf(found);

            //var playlistIndex = this.Playlist.IndexOf(found);

            this.Playlist.CurrentPosition = playlistIndex - 1;

            //if (_stopped)
            //    this.Play();

            AudioInteractor.StopSong();
        }
Exemple #5
0
 public void Stop()
 {
     Log.Debug("Stopping");
     _stopped = true;
     AudioInteractor.StopSong();
 }