Switch to jpeg output

This commit is contained in:
2026-03-16 18:06:06 -07:00
parent c681c35955
commit c80183bd31
3 changed files with 35 additions and 34 deletions

View File

@@ -120,6 +120,10 @@
btnStart.disabled = true;
status.textContent = "Starting…";
await postAction("/camera/start");
// small delay to let camera initialise
await new Promise(r => setTimeout(r, 500));
streamImg.src = "/camera/stream";
streamImg.style.display = "block";
placeholder.style.display = "none";