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

Developing now playing template for android auto #175

Open
thimslogituit opened this issue Mar 14, 2024 · 4 comments
Open

Developing now playing template for android auto #175

thimslogituit opened this issue Mar 14, 2024 · 4 comments
Labels

Comments

@thimslogituit
Copy link

We want to use this library for both ios and android. Now template is working with ios but not supported in android.

We would like to take this library and modify it so that it supports now playing screen in android as well.
But we are not sure how to proceed with it.
Can anyone please guide us on how to develop feature or if there is some work around would be great.

@DanielKuhn
Copy link
Contributor

DanielKuhn commented Mar 14, 2024

Which media player are you planning to use?
We use react-native-track-player for audio playback. For iOS/CarPlay it integrates nicely with this package and for Android Auto there's this branch of react-native-track-player which supports lists and a NowPlaying screen for Android.

@thimslogituit
Copy link
Author

thimslogituit commented Mar 14, 2024

Thanks for the response @DanielKuhn
We have request to use different players other than you mentioned above, we want to use exo player for android and AV player for ios.

@lovegaoshi
Copy link

have you reviewed google's android auto guidelines? in short you need to expose the mediaSession token used when building exoplayer, and add in appropriate functions while declaring your exoplayer's foreground service as a MediaLibraryService. This is really out of scope for a standalone library that builds generic car templates, but rather the audio library's job; eg. see audio_service from the flutter community as an example.

@syedslegend786
Copy link

Which media player are you planning to use? We use react-native-track-player for audio playback. For iOS/CarPlay it integrates nicely with this package and for Android Auto there's this branch of react-native-track-player which supports lists and a NowPlaying screen for Android.

Hi, I am developing a react native app using react-native-track-player, i want my app to work on android-auto. I tried using react-native-carplay, byt NowPlayingTemplate is not woking.
If you have any example application with reactnative, please share the repo, it will help alot.

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

No branches or pull requests

4 participants