Beispiel #1
0
        public void Handle(PlayNextMessage message)
        {
            var previousTrackNumber = CurrentTrackNumber;

            StartPlaybackAction(GetNextTrackNumberFunc());
            if (previousTrackNumber != -1)
            {
                PlaylistHistory.Push(previousTrackNumber);
            }
        }
Beispiel #2
0
 public void Handle(PlayNextMessage message)
 {
 }
        public void Handle(PlayNextMessage message)
        {
            int result;
            if (Items.Count == 0)
            {
                result = NoTrackTrackNumber;
            }
            else if (RepeatOn)
            {
                result = CurrentTrackNumber == NoTrackTrackNumber ? 0 : CurrentTrackNumber;
            }
            else
            {
                result = GetNextTrackNumberFunc();
            }

            StartPlaybackAction(result);
        }
 public void Handle(PlayNextMessage message)
 {
     throw new System.NotImplementedException();
 }
Beispiel #5
0
 public void Handle(PlayNextMessage message)
 {
     throw new System.NotImplementedException();
 }
 public void Handle(PlayNextMessage message)
 {
 }
 public void Handle(PlayNextMessage message)
 {
     var previousTrackNumber = CurrentTrackNumber;
     StartPlaybackAction(GetNextTrackNumberFunc());
     if (previousTrackNumber != -1)
     {
         PlaylistHistory.Push(previousTrackNumber);
     }
 }