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

+5
View File
@@ -17,6 +17,11 @@ pub use decoder::decode_queue_server_events;
pub use decoder::decode_renderer_server_commands;
pub use error::ProtocolError;
pub use event::{ErrorType, PlaybackErrorEvent, QueueEventType, QueueServerEvent};
// Proto message types needed by downstream crates to construct/encode frames
// (e.g. PlaybackErrorMessage for tests and any future re-encoding path).
pub use queue_command_proto::{
PlaybackErrorMessage, QConnectMessage, QConnectMessages, QueueVersionRef,
};
pub use mapper::{
build_qconnect_outbound_envelope, build_qconnect_renderer_outbound_envelope,
encode_queue_command_batch, encode_renderer_report_batch,