uamp icon indicating copy to clipboard operation
uamp copied to clipboard

Use URIs for artwork

Open nic0lette opened this issue 7 years ago • 3 comments

Currently UAMP stuffs Bitmaps into the MediaMetadataCompat objects, but this makes the object use a lot more memory, and forces the use of low resolution images (which are then poorly rendered on large surfaces, such as the background of the lock screen).

The app should use local URIs that point to a ContentProvider and use METADATA_KEY_ALBUM_ART_URI and METADATA_KEY_ART_URI to provide that for use by other components.

nic0lette avatar Jul 12 '18 00:07 nic0lette

+1 for this. I can literally find no examples of artwork supplied via a content provider, and using a bitmap destroys performance on android auto for sizes greater than 320x320.

technicalflaw avatar Jan 09 '19 11:01 technicalflaw

I've looked into this, and the main problem is that if a bitmap is not set, there is no artwork displayed on the lock screen (https://developer.android.com/guide/topics/media-apps/working-with-a-media-session#album_artwork). So the bitmap should be made on the fly when it's needed (& destroyed when it isn't), but I couldn't figure out how to do that.

tamashalasi avatar Feb 01 '19 19:02 tamashalasi

@nic0lette Awesome! Tested this yesterday and the art renders nicely. Can't wait to run it on the car when I pick it up on monday ;-)

kennysaelen avatar Dec 24 '20 11:12 kennysaelen