From 9d3f4847e8ff092eb51aa94be7849d49a56e491d Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Wed, 19 Jan 2022 14:12:51 +0000 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc20499..f0a4b9c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,22 @@ +This is a [demo app](https://web.dev/porting-libusb-to-webusb/) 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.](https://web-dev.imgix.net/image/9oK23mr86lhFOwKaoYZ4EySNFp02/MR4YGRvl0Z9AWT6vv3sQ.jpg?auto=format&w=1600) + +Powered by a [custom fork](https://github.com/RReverser/libgphoto2) of [libgphoto2](https://github.com/gphoto/libgphoto2), a [custom fork](https://github.com/RReverser/libusb) of [libusb](https://github.com/libusb/libusb), WebAssembly via [Emscripten](https://emscripten.org/) and [WebUSB](https://github.com/WICG/webusb). + +For the detailed technical write-up, see [the official blog post](https://web.dev/porting-libusb-to-webusb/). To see the demo in action, visit the hosted version [here](https://web-gphoto2.rreverser.com/) (but make sure to read the [cross-platform compatibility notes](https://web.dev/porting-libusb-to-webusb/#important-cross-platform-compatibility-notes) first). If you don't have a DSLR, you can check out the [recording in the blog post](https://web.dev/#first-things-first:-a-demo). + +## Building + To build, you'll need Docker. Then: ```bash ./build.sh # runs build in Docker -serve ui # starts a local server with COOP/COEP +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](https://github.com/GoogleChromeLabs/web-gphoto2/blob/main/LICENSE).