You might have noticed that changing settings takes a while in the video. Feel free to check out the live or the pre-recorded demo before reading up on technical details: The demo running on a laptop connected to a Sony camera. In the end, I got a working web application that previews live feed from a DSLR and can control its settings over USB. In the second post, I'll go into details on porting and integrating gPhoto2 itself. In this blog post, I'll describe how I ported libusb itself, and what tricks might be necessary to port other popular libraries to Fugu APIs. I'll describe the steps for building this demo in two parts. It supports several protocols, but the one I was most interested in was USB support, which it performs via libusb. In particular, an open source project gPhoto2 has been in this space long enough to reverse-engineer and implement support for a wide variety of digital cameras. The idea I chose was DSLR remote control. The most important thing to do when porting a library is choosing the right demo-something that would showcase the capabilities of the ported library, allowing you to test it in a variety of ways, and be visually compelling at the same time. Isn't the web fun? First things first: a demo # So what the port achieves is, in fact, one libusb, compiled to WebAssembly, talking to another libusb, shipped as part of the browser, through an intermediate layer. Fun fact: On some platforms, implementation of WebUSB also uses libusb under the hood.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |