From d53efa6bca224f2c6bec8e7b14b1dff7f12a2d03 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 8 Mar 2022 15:25:26 -0500 Subject: Add start call to QML 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 Change-Id: Ia4c98a19c73aaf778d4133ef77d93bfdacdf7974 --- app/MediaPlayer.qml | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit 1.2.3-korg