private void OnPlayFoundTrack(object sender, RoutedEventArgs e) { LocalTrack track = FoundTracks[m_foundDataGrid.SelectedIndex]; m_streamingSystemManager.Play(track); IsPlaying = true; CurrentTrack = track; }
private void OnPlayFoundTrack(object sender, RoutedEventArgs e) { LocalTrack track = FoundTracks[m_foundDataGrid.SelectedIndex]; m_streamingSystemManager = m_streamingSystemManagers[(int)StreamingSystemType.Spotify]; m_streamingSystemManager.Play(track); CurrentTrack = track; }
private void PlayNextTrackInCurrentPlaylist() { int index = CurrentPlaylistTrackIndex; if (index < CurrentPlaylist.Count) { PlayingPlaylist = true; CurrentTrack = CurrentPlaylist[index]; m_streamingSystemManager = m_streamingSystemManagers[(int)CurrentTrack.Type]; m_streamingSystemManager.Play(CurrentTrack); CurrentPlaylistTrackIndex++; } else { PlayingPlaylist = false; m_streamingSystemManager.Pause(); } }