summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-03-08 15:25:26 -0500
committerScott Murray <scott.murray@konsulko.com>2022-03-08 15:30:15 -0500
commitd53efa6bca224f2c6bec8e7b14b1dff7f12a2d03 (patch)
treec5f11f7143200c589249c6d2d20262f7de9e86d0
parentf932d6da561278df631d0f77ae496a46efe4750f (diff)
Tweak the app QML to call into the new start call in the libqtappfw Mediaplayer object that replaces the previous WebSocket onConnected hook. This is driven by the need to hold off triggering events from the underlying libqtappfw Bluetooth object until the QML engine is running, otherwise it misses events driven by bluez-glib initialization querying BlueZ state. Bug-AGL: SPEC-4231 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ia4c98a19c73aaf778d4133ef77d93bfdacdf7974
-rw-r--r--app/MediaPlayer.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml
index 94281f5..177fe36 100644
--- a/app/MediaPlayer.qml
+++ b/app/MediaPlayer.qml
@@ -46,6 +46,11 @@ ApplicationWindow {
}
}
+ Component.onCompleted : {
+ // Let the mediaplayer backend know we're ready for metadata events
+ mediaplayer.start()
+ }
+
Connections {
target: mediaplayer