Preserve onboard preview recordings across backpressure and share the complete spatial scene

This commit is contained in:
DCCONSTRUCTIONS
2026-09-07 17:47:10 +03:00
parent 9b6534287a
commit 9bba44f7c4
30 changed files with 957 additions and 494 deletions
@@ -98,6 +98,7 @@ def project_sensor(snapshot, node_id):
"network_applied": connected or attempt.get("phase") == "network_applied",
"reason_code": None if connected else attempt.get("public_error_code"),
"acquisition_id": acquisition.get("acquisition_id"),
"acquisition_phase": acquisition.get("state"),
},
"live_settings": snapshot.get("viewer_settings", {}),
"frames": snapshot.get("metrics", {}),
@@ -149,6 +150,8 @@ class NodeK1Sensor:
return item
if action == "close-peer":
await self.peers.close(params.get("peer_id"))
if params.get("retire_view") is True:
await self.peers.release_view(params.get("view_id"))
return {"ok": True}
if action == "offer":
acquisition_id = item["control"]["acquisition_id"]