[go: nahoru, domu]

Skip to content
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

Getting the current queue of MediaItems via a MediaBrowser #1465

Closed
FilipKastrupGP opened this issue Jun 17, 2024 · 1 comment
Closed

Getting the current queue of MediaItems via a MediaBrowser #1465

FilipKastrupGP opened this issue Jun 17, 2024 · 1 comment
Labels

Comments

@FilipKastrupGP
Copy link

Hi,

I'm working on implementing a playing queue in Media3. On the service side, I'm using MediaLibraryService which contains an ExoPlayer. I add media items via MediaBrowser.addMediaItem(...).

The Problem:
After adding a MediaItem, the ExoPlayer's Timeline.windowCount increases by 1, but the MediaBrowser's Timeline.windowCount does not reflect this change.

This discrepancy is noticeable when comparing the Timeline.windowCount in MediaBrowser and ExoPlayer.

Question:
What could I be missing? Is there a better way to retrieve the items in the current queue?

@FilipKastrupGP
Copy link
Author

I will close this issue.
We disabled the queue from being shown in android auto, but forgot to enable it else where...
To be clear we this is the cause:

MediaSession.ConnectionResult.DEFAULT_PLAYER_COMMANDS.buildUpon()
                .remove(Player.COMMAND_GET_TIMELINE) // Queue button in Android Auto
                .build()

@androidx androidx locked and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants