diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-03-08 15:25:26 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-03-08 15:30:15 -0500 |
commit | d53efa6bca224f2c6bec8e7b14b1dff7f12a2d03 (patch) | |
tree | c5f11f7143200c589249c6d2d20262f7de9e86d0 /app/MediaPlayer.qml | |
parent | f932d6da561278df631d0f77ae496a46efe4750f (diff) |
Add start call to QMLmarlin_12.93.0marlin/12.93.012.93.0
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
Diffstat (limited to 'app/MediaPlayer.qml')
-rw-r--r-- | app/MediaPlayer.qml | 5 |
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 |