Пример #1
0
 public void Play(QueueTrack queue)
 {
     throw new NotImplementedException();
 }
Пример #2
0
 public AddToPlaylistMessage(QueueTrack track, int position)
 {
     Tracks = new List<QueueTrack> {track};
     Position = position;
 }
Пример #3
0
        public void Play(QueueTrack queue)
        {
            // Switch to the selected track
            MessageHelper.SendMessageToBackground(new TrackChangedMessage(queue.Id));

            if (MediaPlayerState.Paused == BackgroundMediaPlayer.Current.CurrentState)
            {
                BackgroundMediaPlayer.Current.Play();
            }
        }
Пример #4
0
 private async Task<QueueTrack> InternalAddAsync(Track track, int position = -1)
 {
     var queue = new QueueTrack(track);
     if (position > -1 && position < PlaybackQueue.Count)
         PlaybackQueue.Insert(position, queue);
     else
         PlaybackQueue.Add(queue);
     MessageHelper.SendMessageToBackground(new AddToPlaylistMessage(queue, position));
     await Task.Delay(50);
     return queue;
 }
Пример #5
0
 public static void Queue(this MediaSource item, QueueTrack queue)
 {
     Set(item, TrackKey, queue);
 }