miguelgrinberg/flask-video-streaming ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Flask web app that shows live video in the browser from a camera source.
I want a simple page with a video stream running in real time, like a webcam feed, and a basic layout with a title and the stream centered on the page. It should work cleanly with the project structure here, and keep the camera handling separated so I can swap between different camera backends if needed. If there’s a Raspberry Pi friendly version or OpenCV based version that fits this repo, use that approach and make it easy to run on the right hardware.
Please include the app entry point, the template for the page, and whatever camera logic is needed so the stream actually works. If you need to look up current Flask or camera streaming docs online, go ahead. Keep it lightweight and focused on getting a working live video stream in the browser.
Are you gonna build this?
make sure you review the code using coderabbit