diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-12-19 14:58:25 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-12-20 12:43:54 -0800 |
commit | 9c97f94bb90f0708d0660db4c95e652dddcd6347 (patch) | |
tree | 055304d4c4a462b18af8a1c8bffbe21b783a39d5 | |
parent | a605a430cce1253f17f943f2c0c7441e059eafea (diff) |
mediaplayer: qml: change album art to libqtappfwhalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy/6.99.4guppy/6.99.37.90.06.99.46.99.3
libqtappfw will set the album art via metadata events
Change-Id: I86f56a8e870657053065f806c5edb09ec3fc2c33
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/MediaPlayer.qml | 8 | ||||
-rw-r--r-- | app/main.cpp | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index 9562f14..ec7b4e0 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -37,7 +37,6 @@ ApplicationWindow { property int duration: 0 property int position: 0 - property string cover_art: "" property string status: "stopped" function time2str(value) { @@ -60,10 +59,6 @@ ApplicationWindow { } if (track) { - if ('image' in track) { - player.cover_art = track.image - } - player.title = track.title player.album = track.album player.artist = track.artist @@ -105,13 +100,12 @@ ApplicationWindow { Layout.preferredHeight: 1080 clip: true Image { - id: albumart anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom height: sourceSize.height * width / sourceSize.width fillMode: Image.PreserveAspectCrop - source: player.cover_art ? player.cover_art : '' + source: AlbumArt visible: player.av_connected === false } diff --git a/app/main.cpp b/app/main.cpp index 7bc4e2f..c5527a8 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -93,8 +93,6 @@ int main(int argc, char *argv[]) context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context)); context->setContextProperty(QStringLiteral("screenInfo"), &screenInfo); - usleep(300000); - engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast<QQuickWindow *>(root); |