otter icon indicating copy to clipboard operation
otter copied to clipboard

[WIP] Basic Android Auto support

Open Skehmatics opened this issue 4 years ago • 5 comments

Implement very basic Android Auto support, relying on ExoPlayer builtins such as MediaSessionConnector and TimelineQueueNavigator as much as possible to avoid introducing unnecessary complexity into the app.

Closes #12

Feature hitlist:

  • [x] View playback state and current track from Android Auto
  • [x] Transport (forward, back) controls
  • [x] View / jump in Queue
  • [ ] Browse library

Bugs that need resolved:

  • [ ] Automatically switch to correct output
  • [ ] Avoid duplicate new track notification when fetching next track

Skehmatics avatar Jun 19 '20 13:06 Skehmatics

Wow, thanks for the PR.

I will need to read some documentation on how to test this without an actual Android Auto. I absolutely never touched that.

How does it work without a way to browse the library from the car? Is your phone used like I kind of advanced remote and your car dashboard like a playback display and speaker? Or does it need this browser implementation before or can be merged?

apognu avatar Jun 20 '20 09:06 apognu

I was able to lightly test part of this, and this is a really good start! I couldn't check audio itself as I could not make a sound in my current environment, but media controls and metadata display look OK.

I'll wait until you continue before inspect and comment the code, but I like where this is going.

~Also, if I remember correctly, when MediaBrowserServiceCompat is implemented, this might also be used for future Android TV support.~

apognu avatar Jun 20 '20 10:06 apognu

Did you have the opportunity to advance this further?

No pressure, mind you, I am just trying to schedule my testing sessions. :)

apognu avatar Jul 08 '20 07:07 apognu

Hello, i see today that you can use an emulator for testing AA on desktop : https://www.reddit.com/r/AndroidAuto/comments/j50fd6/after_5_years_google_released_an_update_for_its/

arniom avatar Oct 05 '20 14:10 arniom

I do have Android Auto, so if someone will compile an APK, I'll throw it on my phone and test it in my car.

th0mcat avatar Dec 05 '20 13:12 th0mcat