fix(video): recover encoder capacity, pace RTP and isolate preview sessions
This commit is contained in:
@@ -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()=>{
|
||||
|
||||
Reference in New Issue
Block a user