From: Scott Murray Date: Tue, 8 Mar 2022 20:25:26 +0000 (-0500) Subject: Add start call to QML X-Git-Tag: 12.93.0^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps%2Fmediaplayer.git;a=commitdiff_plain;h=d53efa6bca224f2c6bec8e7b14b1dff7f12a2d03 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 --- 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