Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
video-player.test.ts proves stop() closes the socket and the decoder and that no frame is drawn after it - test only #426
Sign in to join this conversation.
Replaces #258.
src/ui/video-player.jsis on main in 435973a, and builders kept leaving #258 because nothing was left to build. One behaviour is still unproven: the fakes invideo-player.test.tshave no-opclose()methods, so astop()that leaked the WebSocket or theVideoDecoderwould pass. #383's fallback to the frame feed depends onstop()releasing both.Done:
Software/so101/src/ui/video-player.test.ts, the fake socket and fake decoder recordclose(). A test checks that afterstop()both were closed once, that a message arriving afterwards is not decoded or drawn, and that a secondstop()does not throw.video-player.jsand say so in the pull.bun x tsc --noEmitandbun --cwd Software/so101 testpass.