webcam-view a clone of Pi-View
A handy full-screen video capture device input preview page.
I forked this to add some notes.
I am running this on a Windows PC. It works well. I use it for full screen. When full screen the reverse image does not work. But I don't need that. The CPU load on my Ryzen 7 is only 1-2.5% which seems low for video. The lag is minimal.
I am using miniserver a NodeJS app as the server. After the server is running and the page loads and has the correct webcam, you don't need to keep the server running, unless you press refresh.
Just a single, basic HTML page with a simple video element in the middle that can be set to full screen.
Intended for turning a laptop / Chromebook into a handy monitor to use with a Raspberry Pi and a cheap (£20) HDMI-to-USB adaptor. You'll also probably need a micro-to-full-size HDMI cable (£8) to go from the Raspberry Pi to the USB adaptor.
The Raspberry Pi is intended to be plugged into a monitor or TV. If you only have a laptop or Chromebook available you can now use that instead.
You can find the live page here. The page will ask you for permission to view your camera when it loads. You will probably have multiple cameras to select from, just press the "Change Input" button to switch to the next camera in the list.
Unlike most camera preview windows, this video element doesn't mirror-flip the video by default, although there is a button to do that if you want.
Notes
I've tested the USB adaptor linked to on Amazon above, it works well with the Raspberry Pi 400 kit (which comes complete with a micro-to-full-size HDMI cable, so you just need to get the USB adaptor), displaying 1920 x 1080 ("Full HD") resolution on a Chromebook and Windows laptop. Many other very similar devices are available on Amazon / eBay / etc.
The getUserMedia component on the page sets a high "ideal" screen resolution constraint so you should get up to a 4K display - the Raspberry Pi supports outputting 4K, but the adaptor used here scales that down to 1080p, and of course you'd need a laptop or Chromebook with a 4K display.
There's a little bit of lag when using the mouse and keyboard on the Pi - usable for the command line and general point-and-click usage, but probably not great for gaming.
Requires a browser that supports getUserMedia, so should work on most reasonably modern browsers but will not work on an iPhone / iPad.
Not tested on Android devices, although in theory I think it might work with a suitible USB female to whatever connector fits your phone. See here for more details.