Read the MPRIS cover from the file when Qt leaves CoverArtImage empty #7
No reviewers
Labels
No labels
Kind/Bug
Kind/Chore
Kind/Docs
Kind/Feature
Kind/Security
Priority
High
Priority
Low
Reviewed
Duplicate
Reviewed
Invalid
Status
Blocked
Status
Needs-Decision
Status
Wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Strawly-Music/desktop!7
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/flatpak-mpris-cover"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cover missing from the media controls in the Flatpak
The Flatpak sent no
mpris:artUrl, so the Plasma Media Player widget and the lock screen showed no cover. The native build showed it.The cover for the media controls comes from
QMediaMetaData::CoverArtImage. The same song, loaded withQMediaPlayer, gives:CoverArtImageThumbnailImageWhen
CoverArtImageis empty, the player now reads the cover withCoverArt::read, the libavformat code the song list already uses. It picks the "Cover (front)" picture, so the media controls and the app show the same cover.ThumbnailImagewould also work, but it is deprecated in Qt 6.12 and gives a build warning.Checked: builds without warnings and the tests pass with Qt 6.12 and in
org.kde.Sdk//6.11.CoverArt::readfinds the front cover inside the app's sandbox, on the document portal path the app uses.