예제 #1
0
        public bool Stop()
        {
            var result = BassActor.Stop();

            if (result)
            {
                CurrentLibraryItem = NowPlaying.Current().Value;
                PlaybackState      = PlaybackState.Stopped;
            }
            return(result);
        }
예제 #2
0
 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);
             }
         }
     }
 }