summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-04-16 18:31:22 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-04-18 11:53:26 -0700
commit1f14b62977b3deb285be13f4ede2449df76f24c1 (patch)
treed438b8ef94dd1e0b5f98c80ea63c9de8d0cd55ab /app/main.cpp
parentba7c74937dfbe12ab2ef2419c934a3fc6b51c711 (diff)
bluetooth: populate data for existing avrcp/a2dp connection
Bluetooth connection could exist before mediaplayer application is started. This patchset detects that and populates the initial metadata, and track position + status. AGL-Bug: SPEC-526 Change-Id: Ia0d60972c8eddd8642add708e9a4529c038e931f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp
index dd84f59..a8c32d7 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -90,6 +90,8 @@ int main(int argc, char *argv[])
#if defined(HAVE_DBUS)
DbusService dbus_service;
context->setContextProperty("dbus", &dbus_service);
+
+ engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
#if defined(HAVE_LIGHTMEDIASCANNER)
if (!dbus_service.enableLMS())
qWarning() << "Cannot run enableLMS";
@@ -97,7 +99,6 @@ int main(int argc, char *argv[])
if (!dbus_service.enableBluetooth())
qWarning() << "Cannot run enableBluetooth";
#endif
- engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml")));
return app.exec();
}