Baseflow / Baseflow/XamarinMediaManager

Calling 'playQueueItem' immediately after changing the queue doesn't play, immediately resets queue when play called again later

Open
#856 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
763
Forks
299
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

Running the latest version of XamarinMediaManager, loading a queue and playing a song in the queue other than the first one is not behaving as expected. Calling 'PlayQueueItem' changes the 'current' item but it does not play. Calling 'play' later causes the current item to reset back to the first item in the queue.

### Expected behavior

I would assume 'PlayQueueItem' would immediately start playing the song in the location in the queue specified.

### Reproduction steps

```
await CrossMediaManager.Current.Stop();
CrossMediaManager.Current.Queue.Clear();
foreach (var item in mediaItemPlaylist)
{
CrossMediaManager.Current.Queue.Add(item);
}
await CrossMediaManager.Current.PlayQueueItem(selectedSongIndex)
```

This will cause the current item to change but nothing will play. Calling `CrossMediaManager.Current.Play()` later will reset the queue.

### Configuration

Xamarin.Forms 5.0.0.2337
Xamarin Essentials 1.7.1
Plugin.MediaManager 1.1.0

**Version:** 1.x

**Platform:**
- [ ] :iphone: iOS
- [x] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [ ] :monkey: Xamarin.Forms

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.