finamp icon indicating copy to clipboard operation
finamp copied to clipboard

Carplay support?

Open JohnGalt1717 opened this issue 3 years ago • 40 comments

Really need this in my car like PlexAmp.

Would be really great if I can script a shortcut on iOS to start this on carplay connect and resume music where I last left off automatically.

Thanks!

JohnGalt1717 avatar Apr 14 '21 11:04 JohnGalt1717

The audio service plugin I'm using says it supports Carplay/Android Auto, but there isn't really any documentation about it (ryanheise/audio_service#593). Once there's documentation, I'll look into it :)

jmshrv avatar Apr 14 '21 17:04 jmshrv

+1 for Android Auto

itscaro avatar Apr 15 '21 01:04 itscaro

I would also love to have CarPlay support! Would be nice to have the app be able to run and select the tracks on the car play screen.

Is there anything planned? thanks a lot

stefan1983 avatar Nov 15 '21 23:11 stefan1983

Won't be able to fit it in for this release unless I postpone it even longer, so 0.7 it is (if its even possible, CarPlay is weird)

jmshrv avatar Nov 16 '21 00:11 jmshrv

OK.

Dedicated CarPlay support would be nice, for now the pure playback works so far:

image

But one has to switch between tracks / albums etc. directly on the phone.

stefan1983 avatar Nov 16 '21 15:11 stefan1983

If you need someone to test and play around, let me know ;)

stefan1983 avatar Nov 16 '21 15:11 stefan1983

I'm going to remove this from the 0.7 milestone due to the amount of work it's going to need, there are other issues that need focus right now. I'll still keep this feature in mind - it's a pretty common request :)

jmshrv avatar Apr 10 '22 16:04 jmshrv

Bumping for support!

kaysond avatar Jun 17 '22 21:06 kaysond

+1 on this feature! It would be very nice to have a basic UI to pick albums and initiate playback directly from the CarPlay UI instead of having to pick the phone. Thank you.

TCB13 avatar Jul 09 '22 22:07 TCB13

OK.

Dedicated CarPlay support would be nice, for now the pure playback works so far:

image

But one has to switch between tracks / albums etc. directly on the phone.

How are you able to open your app on carplay? My app crashes as soon as I open it. I followed the documentation and even went through the official Carplay Programming Guide

luca-vz avatar Sep 08 '22 15:09 luca-vz

You can't just open an app directly in Carplay, you have to program a separate UI for it. I'm not sure how it works in detail, but it's definitely a very involved process.

jmshrv avatar Sep 08 '22 16:09 jmshrv

Just some reference links for anyone that decides to look into it further:

https://blog.logrocket.com/adding-carplay-flutter-app/

https://pub.dev/packages/flutter_carplay

anthonylavado avatar Jan 03 '23 16:01 anthonylavado

So what kind of a roadmap is there for Android Auto?

BloodyIron avatar Jan 04 '23 05:01 BloodyIron

Carplay/Android Auto probably falls under the "massive project that will take lots of dedicated work" category, and since I don't have a car I can't really test the feature if I was to work on it. Hopefully someone else with more experience/need could start working on it.

jmshrv avatar Jan 04 '23 16:01 jmshrv

So while it isn't pretty in Carplay, it does play. and uses the basic audo controls In AAuto, it stops playing completely and I have to hit play within the app again. It also doesn't allow skip/rewind to work. I also had to remove Spotify and Plexamp for it to not auto play those. Please see about adding basic functionality for AA just so that I can listen to music while getting directions.

Neoakb avatar Feb 24 '23 01:02 Neoakb

It looks like audio_service has some functions related to Android Auto, but as said in the linked issue earlier they're undocumented - https://pub.dev/documentation/audio_service/latest/audio_service/AudioHandler/getChildren.html

This isn't something that I can work on myself since I'll have no way of testing it, although I'll be happy to help someone else with it

jmshrv avatar Feb 24 '23 01:02 jmshrv

I can test it for sure, and I have a somewhat functional grasp of coding. How can I help?

Neoakb avatar Feb 24 '23 01:02 Neoakb

Just keeping this alive - great app - android auto please if poss - happy to test !

bingobob avatar Jul 30 '23 07:07 bingobob

I managed to hack in some rudimentary Android Auto support if anyone would like to try it out. https://github.com/puff/finamp/tree/android-auto

https://github.com/jmshrv/finamp/assets/33184334/b5076afb-865d-4733-b3cf-1ca65e93d324

For the demo, I used the Desktop Head Unit program from the Android SDK.

puff avatar Aug 14 '23 01:08 puff

This is awesome to see, hopefully we can get this into something more concrete :)

jmshrv avatar Aug 14 '23 02:08 jmshrv

Looks potentially stale, but may be something worth looking in to: https://pub.dev/packages/flutter_carplay Also: https://github.com/flutterfromscratch/using-flutter-with-carplay

dbolger avatar Sep 25 '23 15:09 dbolger

I believe CarPlay development requires macOS, otherwise this seems possible to do.

Also, @puff how would I go about trying this out? Just build and install your branch to my Android phone and then connect to a car? Any other required steps? Would love to try it out!

Chaphasilor avatar Sep 25 '23 15:09 Chaphasilor

I believe CarPlay development requires macOS, otherwise this seems possible to do.

Also, @puff how would I go about trying this out? Just build and install your branch to my Android phone and then connect to a car? Any other required steps? Would love to try it out!

Hi, you can either use the Desktop Head Unit emulator from the Android SDK or you could test it on your own car. To use the emulator:

  1. On your phone, go to Settings -> Apps -> Android Auto -> Additional Settings
  2. Start the head unit server on your phone through the Android Auto app
  3. Connect your phone to your pc via adb
  4. Run desktop-head-emulator.exe 4.a You may have to run adb forward tcp:5277 tcp:5277

You can debug using the DHU like normal by debugging the app on your phone through your IDE

As for CarPlay, I believe it does require macOS to be able to install it on an iPhone or to use their CarPlay simulator. Unfortunately, I have neither so I can't test it :(

puff avatar Sep 25 '23 18:09 puff

+1 for this feature as well! I think it's basically the only feature I'm missing from Spotify that I can't live without.

truppelito avatar Sep 26 '23 00:09 truppelito

@puff I did manage to get it to run just now! However, only the Now Playing and queue screen are working for me, the home screen says "No Items". Any idea what could be the cause here? Haven't had a chance to dive into the logs just yet.
Also, all of the refactoring you did with the TabContentType and MediaItemHelper, are these necessary for Android Auto support? I'm asking because re-creating your changes in the current version seems easier than rebasing at this point, especially with the redesign coming up...

Edit: Here are some photos of Finamp running on an actual car 🥳

image

image

Chaphasilor avatar Oct 07 '23 17:10 Chaphasilor

@puff I did manage to get it to run just now! However, only the Now Playing and queue screen are working for me, the home screen says "No Items". Any idea what could be the cause here? Haven't had a chance to dive into the logs just yet. Also, all of the refactoring you did with the TabContentType and MediaItemHelper, are these necessary for Android Auto support? I'm asking because re-creating your changes in the current version seems easier than rebasing at this point, especially with the redesign coming up...

Edit: Here are some photos of Finamp running on an actual car 🥳

The issue with "No Items" seems to be with the latest commit on my branch. That's what I get for not testing lol. I've pushed a fix for it. The TabContentType refactors aren't necessary, a new enum could be created instead. I just thought I may as well use the one already there, but I see how it can be confusing. As for MediaItemHelper, Android Auto uses MediaItem and I thought that would be the best way to incorporate it. I was waiting for the redesign to continue this feature, but feel free if you want to add it :P

puff avatar Oct 07 '23 17:10 puff

Testing this build out, does it work well with offline support? I turned the app on offline mode after downloading songs and it seems that the lists still try to download on the car display. Unfortunately, at my work parking lot the signals are so bad that I can't get the music started.

seang96 avatar Oct 18 '23 23:10 seang96

Noob question. Is there a build with android auto available and can I get a link to it please? More than happy to test in my car! Would be brilliant, love finamp, in the car - it would be superb!

bingobob avatar Oct 19 '23 07:10 bingobob

Noob question. Is there a build with android auto available and can I get a link to it please? More than happy to test in my car! Would be brilliant, love finamp, in the car - it would be superb!

@puff has a build in his fork you can download. You'll need to enable Dev mode for Android auto by tapping on build number a bunch and going to dev options to check allow apps from unknown sources.

seang96 avatar Oct 19 '23 10:10 seang96

Thanks for that,

Will try.

On Thu, 19 Oct 2023, 11:15 Sean Greenawalt, @.***> wrote:

Noob question. Is there a build with android auto available and can I get a link to it please? More than happy to test in my car! Would be brilliant, love finamp, in the car - it would be superb!

@puff https://github.com/puff has a build in his fork you can download. You'll need to enable Dev mode for Android auto by tapping on build number a bunch and going to dev options to check allow apps from unknown sources.

— Reply to this email directly, view it on GitHub https://github.com/jmshrv/finamp/issues/24#issuecomment-1770505632, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFKFUPC5IKUWQEJ6QNWKTLYAD4URAVCNFSM425G5FBKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGA2TANJWGMZA . You are receiving this because you commented.Message ID: @.***>

bingobob avatar Oct 19 '23 12:10 bingobob