Esempio n. 1
0
 public bool ChangeToTrack(IStreamableTrack track)
 {
     try
     {
         _cursor = _tracks.IndexOf(track);
         FireTrackChangeEvent();
         return true;
     }
     catch (Exception)
     {
         return false;
     }
 }
Esempio n. 2
0
 private void ThrowRequestTrackChange(IStreamableTrack track)
 {
     if( RequestTrackChangeEvent != null )
     {
         RequestTrackChangeEvent(track);
     }
 }
Esempio n. 3
0
 public void ChangeToTrack(IStreamableTrack track)
 {
     if( _playlist.ChangeToTrack(track) )
     {
         _userChanging = true;
         _player.Play(_playlist.Current.StreamURL);
         _timer.Enabled = true;
     }
 }