public bool Stop() { var result = BassActor.Stop(); if (result) { CurrentLibraryItem = NowPlaying.Current().Value; PlaybackState = PlaybackState.Stopped; } return(result); }
private void onBassEvent(object sender, BassEventArgs args) { if (args.Event == BassEvent.PlaybackFinished) { PlaybackState = PlaybackState.Stopped; var listItem = NowPlaying.Current(); if (listItem.Key < NowPlaying.Count - 1) { Play(NowPlaying.Forward().Value); } else { if (Repeat) { Play(NowPlaying.Forward().Value); } } } }