Ejemplo n.º 1
0
        private void OnPlayFoundTrack(object sender, RoutedEventArgs e)
        {
            LocalTrack track = FoundTracks[m_foundDataGrid.SelectedIndex];

            m_streamingSystemManager.Play(track);
            IsPlaying    = true;
            CurrentTrack = track;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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();
            }
        }