Ejemplo n.º 1
0
        private void StopPlaying()
        {
            if (CurrentSong == null)
            {
                return;
            }

            SongPlayerViewModel.StopPlaying();
            CurrentSong = null;
        }
Ejemplo n.º 2
0
        private async Task StartPlaying(CancellationToken cancellationToken)
        {
            CurrentSong = playlist.CurrentSong;
            if (CurrentSong == null)
            {
                // No songs to play.
                return;
            }

            await SongPlayerViewModel.Play(CurrentSong, cancellationToken);
        }
Ejemplo n.º 3
0
 public async Task ReversePlaying(CancellationToken cancellationToken)
 {
     if (CurrentSong == null)
     {
         await StartPlaying(cancellationToken);
     }
     else
     {
         SongPlayerViewModel.ReversePlaying();
     }
 }