Files
web-dslr/README.md
2022-01-26 00:43:07 +00:00

1.6 KiB

This is a demo app running gPhoto2 on the Web:

A picture of DSLR camera connected via a USB cable to a laptop. The laptop is running the Web demo mentioned in the article, which mirrors a live video feed from the camera as well as allows to tweak its settings via form controls.

Powered by a custom fork of libgphoto2, a custom fork of libusb, WebAssembly via Emscripten, and WebUSB.

For the detailed technical write-up, see the official blog post. To see the demo in action, visit the hosted version here (but make sure to read the cross-platform compatibility notes first). If you don't have a DSLR, you can check out the recording in the blog post.

Building

To build, you'll need Docker. Then:

./build.sh # runs build in Docker
npx serve ui # starts a local server with COOP/COEP

Then, navigate to http://localhost:5000/ in Chrome.

License

Like the dependencies, this demo is licensed under LGPL v2.1.