summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-03 16:35:57 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-04-20 13:28:14 -0700
commit74c70d0ac87d4674646e53d2af781d9084a7ea06 (patch)
treef57dd1b539674b80039db5e237b7c4ea5840a154 /app/main.cpp
parent5c883d249021c41a6859604d4054f2b6e693b9ad (diff)
libqtappfw: mediaplayer: switch from qml websockets to libqtappfw
Switch agl-service-mediaplayer access from QML websockets to proper libqtappfw middleware. Bug-AGL: SPEC-1375 Change-Id: I8ee638f11b2d63c42657545f501260da9dc94356 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 145d9d1..928b825 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -28,6 +28,7 @@
#include <QQuickWindow>
#include <libhomescreen.hpp>
#include <qlibwindowmanager.h>
+#include <mediaplayer.h>
int main(int argc, char *argv[])
{
@@ -94,6 +95,7 @@ int main(int argc, char *argv[])
}
});
+ context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress));
engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
QObject *root = engine.rootObjects().first();
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);