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

@@ -43,7 +43,7 @@ def camera_stop() -> tuple[Response, int]:
def camera_stream() -> Response:
def generate() -> Generator[bytes, Any, Any]:
for frame in camera.frames():
yield (b"--frame\r\n" b"Content-Type: video/H264\r\n\r\n" + frame + b"\r\n")
yield (b"--frame\r\n" b"Content-Type: image/jpeg\r\n\r\n" + frame + b"\r\n")
return Response(
generate(),