fix(video): recover encoder capacity, pace RTP and isolate preview sessions

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:25 +03:00
parent 3d04fa45d3
commit bed1db3508
29 changed files with 1534 additions and 141 deletions
@@ -5,7 +5,7 @@ const result=await build({entryPoints:[new URL('../../../packages/sensor-ui/src/
b.onResolve({filter:/^(react|\.\/contracts|\.\/observationStart)$/},a=>({path:a.path,namespace:'fixture'}));
b.onLoad({filter:/.*/,namespace:'fixture'},a=>({contents:a.path==='react'?
'export const useEffect=f=>globalThis.previewUI.effects.push(f),useRef=v=>({current:v}),useState=v=>[v,next=>globalThis.previewUI.writes.push(next)];':a.path==='./contracts'?
'export const perform=(...args)=>globalThis.previewUI.perform(...args);':'export const currentPreviewDevice=async d=>d;'}));
'export const perform=(...args)=>globalThis.previewUI.perform(...args);':'export const currentPreviewDevice=async d=>d;export const observationSession=d=>d.snapshot.context.session_id;'}));
}}]});
const {useSensorPreview}=await import('data:text/javascript;base64,'+Buffer.from(result.outputFiles[0].contents).toString('base64'));
test('stuck signaling expires, retires late answers and removes every retry/listener on unmount',async()=>{