Skip to content

Pixelated artwork in notification and lock screen (1024x1024 PNG) #3134

@AleksanderMielczarek

Description

@AleksanderMielczarek

Version

Media3 1.9.2

More version details

I'm experiencing an issue where the artwork displayed in the media notification and on the lock screen appears heavily pixelated / blurry, even though the source image is high quality.
The image used is a 1024x1024 PNG, so resolution should be sufficient.
The issue has been specifically observed on Samsung devices.

Image format: PNG
Resolution: 1024x1024

I also tried:

  • Passing artwork as a ByteArray
  • Converting the image locally to WebP from ByteArray
  • Bump library to 1.10.0-rc02

The issue persists in all cases

internal fun MyAudio.mapToMediaItem(): MediaItem {
    return MediaItem.Builder()
        .setUri(audioEndpoint)
        .setMediaId(id.toString())
        .setMediaMetadata(
            MediaMetadata.Builder()
                .setArtworkUri(artworkUrl?.toUri())
                .setTitle("Title")
                .setDescription("Description")
                .build()
        )
        .build()
}

Devices that reproduce the issue

Samsung S24
Samsung A54

Devices that do not reproduce the issue

Motorola Edge 30 Pro
Pixel 7 Pro

Reproducible in the demo app?

Yes

Reproduction steps

Create a MediaItem with artwork using MediaMetadata.setArtworkUri
Provide a high-resolution image (1024x1024 PNG)
Start playback using Media3 session/player
Observe notification and lock screen artwork

Expected result

Artwork should be displayed in good quality (properly scaled, no visible pixelation).

Actual result

Artwork appears pixelated in:

Media notification
Lock screen media controls

Media

Image
Image

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