kaaholst / android-squeezer

Remote control for your Logitech Media Server ("Squeezeserver" etc) and players.
Apache License 2.0
75 stars 15 forks source link

Support for Android Auto #742

Open kaaholst opened 2 years ago

kaaholst commented 2 years ago

Request from Google Play:

Possibility to control Squeezer by buttons of my steering wheel. Yes, I use squeezebox in my car and it works great!

ProteinPig commented 2 years ago

I'm using in my car also, everything is great except I can't control through Bluetooth.

When I press "next" button, it just pause few seconds, then continue play the same song.

So I think support Bluetooth control is also great, since my car doesn't have Android Auto.

gumil commented 2 years ago

Is the reason for this not working because MediaController is not implemented (searching the repo did not show any files that contains MediaController)? I’d also love to have this because I would want to control music using a watch.

explor202 commented 7 months ago

I would also like to see Squeezer be Android Auto compatible. I don't necessarily need BT support at the same time, but being able to see the app and use the touchscreen on my AA device would be sufficient for now. @kaaholst isn't that part just a change to some manifest data?

kaaholst commented 7 months ago

I'm afraid that making an Android Auto app is not that simple. The links below is the Google documentation on how to create an app for Android Auto. As seen in the links, a prerequisite for this that the app is a media app in the Android context. Squeezer is not that, it's a remote control for Squeezeplayers (via LMS), it does not stream media on its own. This means it's a lot of work to make this happen. Once this is in place, it is a matter of declaring support for Android Auto in the manifest, as you suggest.

Create media apps Build media apps for cars Add support for Android Auto to your media app

explor202 commented 7 months ago

That's good info, thanks for sharing it. I might try to edit the APK (again) in APK Editor Studio and see what I can come up, just for my own use of course. Would you care to provide any suggestions? Or is it not that simple? I was previously able to add the different XML files, but I missed the part about declaring it a media app in the Android context.

kaaholst commented 7 months ago

@explor202 You are welcome to give it a try! A word of warning, though, I don't think you will have any success. I think more than editing the manifest XML is required. You also need to implement the requirements in the first two links I provided, which is a major task.