-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When playing a MediaItem on Android Auto the queue only contains the currently selected MediaItem #156
Comments
Thanks for reporting! Android Auto is using the In Media3 this preparation request from Android Auto calls When you implement Said this, there is still an issue because playback always starts at media item index 0. This means when a user selects for instance the third item in a category, you can not set the whole category and then start playback at the third item (media item index 2). I don't have a solution for this yet I'm afraid. I tried some hacky ways but I couldn't find a solution that works reliably. The only thing you can do for now, is putting the selected item at the begin of the list and all the other items after it. That's a regression to what was possible with media1. So keeping the bug label. We need to think about how we can enable the desired behaviour. |
Thanks for answering Marc! Indeed, this does work. I've used your workaround to shuffle the list. Not perfect but far better than having no queue at all. |
@marcbaechinger I also find that in the |
I don't think there is something the Media3 library can do to avoid that as long as Android Auto is using Media1. When AA is browsing your catalogue they are receiving a Media3 then receives this call and creates a |
I think you can just defer completing the For instance:
I haven't tried but I think that should work. |
Closing as the initial issue is fixed. |
Media3 Version
1.0.0-beta02
Devices that reproduce the issue
Android Auto with Pixel 6 Pro
Devices that do not reproduce the issue
Reproducible in the demo app?
Not tested
Reproduction steps
In my
onGetLibraryRoot
, I have the following code:in
onGetChildren
, I load all of my items and they are being displayed just fine:Expected result
When selecting one, I'd expect to use the List of
MediaItem
so that I can automatically skip aheadActual result
My queue contains only the selected item:
Media
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: