summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
a605a43)
libqtappfw will set the album art via metadata events
Change-Id: I86f56a8e870657053065f806c5edb09ec3fc2c33
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
property int duration: 0
property int position: 0
property int duration: 0
property int position: 0
- property string cover_art: ""
property string status: "stopped"
function time2str(value) {
property string status: "stopped"
function time2str(value) {
- if ('image' in track) {
- player.cover_art = track.image
- }
-
player.title = track.title
player.album = track.album
player.artist = track.artist
player.title = track.title
player.album = track.album
player.artist = track.artist
Layout.preferredHeight: 1080
clip: true
Image {
Layout.preferredHeight: 1080
clip: true
Image {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: sourceSize.height * width / sourceSize.width
fillMode: Image.PreserveAspectCrop
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 : ''
visible: player.av_connected === false
}
visible: player.av_connected === false
}
context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context));
context->setContextProperty(QStringLiteral("screenInfo"), &screenInfo);
context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context));
context->setContextProperty(QStringLiteral("screenInfo"), &screenInfo);
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
QObject *root = engine.rootObjects().first();
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
QObject *root = engine.rootObjects().first();
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);