这是indexloc提供的服务,不要输入任何密码
Skip to content

Can't render artwork on AAOS emulator #2516

@mylesbennett-global

Description

@mylesbennett-global

Version

Media3 1.5.1

More version details

I can't get artwork to render on AAOS media3 emulator. Exactly the same code that renders fine on Android Auto is producing "musical note" fallback images,
We are using the artworkData field of MediaMetaData and setting a byte array there. I have checked the integrity of the bytearray. I have even injected a custom BitMapLoader based on the one in the system, only with logs, and this reports everything fine.
I am using the AOSP ATD ARM 64 System Image
I tried looking at your demo app but this uses embedded png images. I need to load images dynamically from the network.

Devices that reproduce the issue

AOSP ATD ARM 64 System Image

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

The problem manifests with http(s) uris assigned to the artworkUri field as well. To reproduce in the demo app you would need to find a way to insert a valid http(s):/ instead of the content:/ uri that points to the fixed assets in the metadata. For example:
https://fastly.picsum.photos/id/944/50/50.jpg?hmac=9cgNtSzBtm9bkeyK8axolhjzlRtJQwoxbr6t53orjqs

Regrettably, I was unable to figure out how to do that. Had the underlying code for MediaItem been a Kotlin data class, this would have been a simple map and copy inside onGetChildren.....

Expected result

Image

Actual result

Image

Media

n/a

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions