diff --git a/crates/muninn-daemon/src/main.rs b/crates/muninn-daemon/src/main.rs index bede5f2..d791208 100644 --- a/crates/muninn-daemon/src/main.rs +++ b/crates/muninn-daemon/src/main.rs @@ -63,7 +63,7 @@ const IDUNN_HEALTH_RUDP_CONNECTION_ID: u32 = 0x1d0d_0001; const MUNINN_MEDIA_RUDP_CONNECTION_ID: u32 = 0x6d75_0001; const MUNINN_AUDIO_RUDP_CONNECTION_ID: u32 = 0x6d75_0004; const MUNINN_HID_CONTROLLER_RUDP_CONNECTION_ID: u32 = 0x6d75_0005; -const MUNINN_COMMAND_RUDP_CONNECTION_ID: u32 = 0xe1e0_0001; +const MUNINN_COMMAND_RUDP_CONNECTION_ID: u32 = 0x61e0_0001; const MUNINN_RUDP_MEDIA_PROFILE_ID: &str = "muninn.rudp.low_latency_h264_lan.v1"; const MUNINN_RUDP_MEDIA_VIDEO_BITRATE_KBPS: u32 = 12_000; const MUNINN_RUDP_MEDIA_VBV_FRAME_BUDGETS: u32 = 1; diff --git a/src/hermodr-daemon.cjs b/src/hermodr-daemon.cjs index 6603690..35cd5ec 100644 --- a/src/hermodr-daemon.cjs +++ b/src/hermodr-daemon.cjs @@ -742,6 +742,7 @@ async function publishEveCommand(options, body) { commandId, command, route.publishEndpoint || route.uri, + route.connectionId, ); if (publication.routeError) { const error = new Error(`CultMesh route publish failed for ${route.uri}: ${publication.routeError}`); @@ -756,13 +757,13 @@ async function publishEveCommand(options, body) { }; } -async function publishCommandDocument(options, definition, key, value, route) { +async function publishCommandDocument(options, definition, key, value, route, connectionId = 0xe1e00001) { let routeError = null; if (route && (route.startsWith("cultmesh://") || route.startsWith("rudp://"))) { try { await CultMesh.publishRudpDocumentOnce( "hermodr-browser-lowering", - 0xe1e00001, + Number(connectionId), route, { definition }, key,