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