private void StopPlaying() { if (CurrentSong == null) { return; } SongPlayerViewModel.StopPlaying(); CurrentSong = null; }
private async Task StartPlaying(CancellationToken cancellationToken) { CurrentSong = playlist.CurrentSong; if (CurrentSong == null) { // No songs to play. return; } await SongPlayerViewModel.Play(CurrentSong, cancellationToken); }
public async Task ReversePlaying(CancellationToken cancellationToken) { if (CurrentSong == null) { await StartPlaying(cancellationToken); } else { SongPlayerViewModel.ReversePlaying(); } }