Use provider-advertised command connection IDs

This commit is contained in:
Meta Vens 2026-07-12 23:15:03 +01:00
commit 37268b4b75
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -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,