feat: Android Auto Media Browsing Support#842
Open
ghhccghk wants to merge 2 commits intoFoedusProgramme:betafrom
Open
feat: Android Auto Media Browsing Support#842ghhccghk wants to merge 2 commits intoFoedusProgramme:betafrom
ghhccghk wants to merge 2 commits intoFoedusProgramme:betafrom
Conversation
Adds media browsing functionality to Android Auto. Key changes include: - Implemented `onGetLibraryRoot` and `onGetChildren` in `GramophonePlaybackService` to provide the media library browsing structure, currently supporting only the “current playback queue”. - Added `GramophoneAlbumArtProvider` to supply album art to Android Auto via `ContentProvider`, resolving cover art display issues on Android Auto. - Refactored `dumpPlaylist` logic and migrated it to the new `PlayerListHelp` utility class for reuse between `Service` and `UI`. - Registered `GramophoneAlbumArtProvider` in `AndroidManifest.xml` and officially enabled Android Auto functionality. Translated with DeepL.com (free version) Signed-off-by: ghhccghk <2137610394@qq.com>
This change resolves an issue where Android Auto fails to display album covers using the custom `gramophoneSongCover` URI scheme. Specifically: * Rewrote the `onGetItem` callback to convert custom URIs into `content://` URIs that Android Auto can handle. * Refactored `onGetChildren` to load media items asynchronously and ensure album cover URIs are fixed before returning to the client. * Added logic in `onAddMediaItems` to fix cover URIs when media items are added to playlists. * Added detailed error logging in `GramophoneAlbumArtProvider` for future debugging. Signed-off-by: ghhccghk <2137610394@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds media browsing functionality to Android Auto.
Key changes include:
onGetLibraryRootandonGetChildreninGramophonePlaybackServiceto provide the media library browsing structure, currently supporting only the “current playback queue”.GramophoneAlbumArtProviderto supply album art to Android Auto viaContentProvider, resolving cover art display issues on Android Auto.dumpPlaylistlogic and migrated it to the newPlayerListHelputility class for reuse betweenServiceandUI.GramophoneAlbumArtProviderinAndroidManifest.xmland officially enabled Android Auto functionality.Translated with DeepL.com (free version)