Merge pull request #1874 from bilawalsidhu/samehkhamis/video-check-starts-red

globe.imagery.video: paint the test video red before recording starts
This commit is contained in:
Sameh Khamis authored and GitHub committed 2026-11-19 19:49:16 -08:00
commit 20620e89bf
1 file changed
+6 -2
+6 -2
View File
@@ -5356,10 +5356,14 @@ export function portChecks() {
const chunks = [];
recorder.ondataavailable = (e) => chunks.push(e.data);
let colour = '#ff0000';
const paint = setInterval(() => {
const fill = () => {
g.fillStyle = colour;
g.fillRect(0, 0, 32, 32);
}, 20);
};
// Red from the first recorded frame: a blank canvas until the first
// tick read dark early in the segment on a loaded runner.
fill();
const paint = setInterval(fill, 20);
const wait = (ms) => new Promise((done) => setTimeout(done, ms));
recorder.start();
await wait(1000);