otter
otter copied to clipboard
[WIP] Basic Android Auto support
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
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?
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.~
Did you have the opportunity to advance this further?
No pressure, mind you, I am just trying to schedule my testing sessions. :)
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/
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.