Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QML: Add ImageProvider for Cover Art #3913

Merged
merged 4 commits into from
Jun 5, 2021
Merged

Conversation

Holzhaus
Copy link
Member

@Holzhaus Holzhaus commented May 25, 2021

This allows displaying cover art in QML skins.

Screenshot from 2021-05-25 23-20-40

Depends on #3911.

@Holzhaus Holzhaus force-pushed the qml-coverart branch 5 times, most recently from 029d252 to d4681e3 Compare May 26, 2021 22:12
@Holzhaus Holzhaus marked this pull request as draft May 27, 2021 14:16
@Holzhaus Holzhaus force-pushed the qml-coverart branch 2 times, most recently from c14b8b6 to 468869f Compare May 27, 2021 23:54
@Holzhaus Holzhaus changed the title QML Pt. 4: Add ImageProvider for Cover Art QML: Add ImageProvider for Cover Art May 28, 2021
@Holzhaus Holzhaus force-pushed the qml-coverart branch 3 times, most recently from cf453e1 to ec88b47 Compare June 2, 2021 09:24
}

void AsyncImageResponse::run() {
if (m_id.startsWith(QStringLiteral("coverart/"))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use a constant for this prefix and 9 = length

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then:
QString decodeTrackLocationFromId(const QString& coverartId)

src/skin/qml/asyncimageprovider.cpp Show resolved Hide resolved
src/skin/qml/qmlplayerproxy.cpp Show resolved Hide resolved
@Holzhaus Holzhaus marked this pull request as ready for review June 5, 2021 10:17
@Holzhaus Holzhaus requested a review from uklotzde June 5, 2021 10:17
Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we really need to rewrite the library backend to overcome its limitations. LGTM

@uklotzde uklotzde merged commit 4f16f8e into mixxxdj:main Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants