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

Bundle in onPlayFromMediaId method is always empty. I need the Media Item Object. #547

Open
atiqmumtaz507 opened this issue Oct 9, 2024 · 1 comment

Comments

@atiqmumtaz507
Copy link

atiqmumtaz507 commented Oct 9, 2024

override fun onPlayFromMediaId(mediaId: String?, extras: Bundle?) {
}

Android Auto Media App shows Content under the For you
Screenshot 2024-10-09 at 16 13 48

Once the item is clicked i need the extras in onPlayFromMediaId method call which are packed on the creation of the item. But sadly the items are not available.

One way is to use the mediaId and load the content through api call. But the best way would be to get the extras through the Bundle. It is also not possible to save the whole data inside the app as the content shown under For you is old and app/sercice class cannot hold the content for long time.

@atiqmumtaz507 atiqmumtaz507 changed the title Bundle is always empty. I need the Media Item Object. Bundle in onPlayFromMediaId method is always empty. I need the Media Item Object. Oct 9, 2024
@atiqmumtaz507
Copy link
Author

@SigmanZero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant