feat(qconnect-app): emit PlaybackError app event from renderer failure

Decodes PlaybackErrorMessage off the InboundPayloadBytes batch and emits a
PlaybackError app event; the Tauri event sink forwards it to qconnect:event
via its existing catch-all emit.

cc
This commit is contained in:
vicrodh committed 2026-06-01 03:23:03 -06:00
1 parent d865097a4c
commit fea9dbe1d4
5 files changed
+79 -3

No files matched your search

+8
View File
@@ -31,6 +31,14 @@ pub enum QconnectAppEvent {
action_uuid: String,
},
QueueResyncTriggered,
/// Renderer per-track playback failure (PlaybackErrorMessage). The frontend
/// maps streamable/network/not-found failures on the current item to an
/// auto-skip; other types surface a toast only.
PlaybackError {
queue_item_id: u64,
error_type: qconnect_protocol::ErrorType,
queue_version: Option<qconnect_core::QueueVersion>,
},
/// Session management event from server (types 81-87, 97-101).
/// These don't affect the queue reducer but provide session topology info.
SessionManagementEvent {