News for hackers. Stuff that matters.
Re:Driver Adventures for a 1999 Webcam by gregsadetsky on Friday April 28, 2023 @03:03PM (#35745652)
I’ve been curious for a while - would it make sense for some USB drivers to be adapted / recompiled to WASM and used via web pages? (Chrome can allow JS code to access USB devices)

Like in this case, would it have made sense to recreate the driver in this way so that other owners of the same camera could have immediately tried it out in their browsers regardless of their operating system?

How OS-specific are most USB devices?

Re:Driver Adventures for a 1999 Webcam by RReverser on Saturday April 29, 2023 @07:57PM (#35758474)
Don't know about webcams - usually (unlike in OP's case) those already have good OS-level support, but I did port gphoto2 to Wasm+WebUSB for access to DSLRs & mirrorless cameras: https://github.com/GoogleChromeLabs/web-gphoto2
Re:Driver Adventures for a 1999 Webcam by gregsadetsky on Saturday April 29, 2023 @08:08PM (#35758533)
Amazing, thanks for sharing

And really great write up too!

https://web.dev/porting-libusb-to-webusb/

Re:Driver Adventures for a 1999 Webcam by RReverser on Saturday April 29, 2023 @08:56PM (#35758752)
Thanks, be sure to check out the part 2 as well :)