Esempio n. 1
0
 private void Window_Closed(object sender, EventArgs e)
 {
     m_streamingSystemManager?.Pause();
     if (m_streamingSystemManager != null)
     {
         m_streamingSystemManager.OnTrackTimeChange -= OnCurrentTrackTimeChange;
     }
 }
Esempio n. 2
0
        private void PlayNextTrackInCurrentPlaylist()
        {
            int index = CurrentPlaylist.CurrentIndex;

            if (index < CurrentPlaylist.Tracks.Count)
            {
                PlayingPlaylist          = true;
                CurrentTrack             = CurrentPlaylist.Tracks[index];
                m_streamingSystemManager = m_streamingSystemManagers[(int)CurrentTrack.Type];
                m_streamingSystemManager.Play(CurrentTrack);
                CurrentPlaylist.CurrentIndex++;
            }
            else
            {
                PlayingPlaylist = false;
                m_streamingSystemManager.Pause();
            }
        }