From ba7c74937dfbe12ab2ef2419c934a3fc6b51c711 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 3 Apr 2017 22:35:00 -0700 Subject: bluetooth: add a2dp metadata and avrcp controls Add initial support for Bluetooth A2DP streams, and AVRCP player controls, and metadata. Bug-AGL: SPEC-486 SPEC-524 SPEC-525 Change-Id: Iac3095c517f07d7e65bf0bd5639d85bab2de7451 Signed-off-by: Matt Ranostay --- app/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/main.cpp') diff --git a/app/main.cpp b/app/main.cpp index e8d4082..dd84f59 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -87,11 +87,15 @@ int main(int argc, char *argv[]) QQmlContext *context = engine.rootContext(); context->setContextProperty("mediaFiles", mediaFiles); -#if defined(HAVE_DBUS) && defined(HAVE_LIGHTMEDIASCANNER) +#if defined(HAVE_DBUS) DbusService dbus_service; context->setContextProperty("dbus", &dbus_service); +#if defined(HAVE_LIGHTMEDIASCANNER) if (!dbus_service.enableLMS()) qWarning() << "Cannot run enableLMS"; +#endif + if (!dbus_service.enableBluetooth()) + qWarning() << "Cannot run enableBluetooth"; #endif engine.load(QUrl(QStringLiteral("qrc:/MediaPlayer.qml"))); -- cgit 1.2.3-korg