summaryrefslogtreecommitdiffstats
path: root/app/MediaPlayer.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-12-19 14:58:25 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-12-19 15:06:58 -0800
commit91bbf6d2af85e1a440a889c29ebd8e1c34b17b64 (patch)
tree46fcdda9345588e76eaadf1ed6cd21b590785720 /app/MediaPlayer.qml
parent0a9c1fd6c0691029210dacac26b7d12d81b13d11 (diff)
mediaplayer: qml: change album art to libqtappfw
libqtappfw will set the album art via metadata events Change-Id: I86f56a8e870657053065f806c5edb09ec3fc2c33 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/MediaPlayer.qml')
-rw-r--r--app/MediaPlayer.qml8
1 files changed, 1 insertions, 7 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
}