4 ms·
Does a device need to specifically support WebUSB, or will it work with any USB device so long as the web page supports it? Or is it the browser that needs to s
by roxgib 4y ago
Does a device need to specifically support WebUSB, or will it work with any USB device so long as the web page supports it? Or is it the browser that needs to support the device? I found contradictory information on this when searching.
- maushu 4y agoShould work with any device. The web page needs to implement the driver/protocol to communicate with the hardware.
- memen 4y agoThe website has to start the interaction with the USB device, it can be any USB device (not sure anymore, but i think you had to filter for Vendor ID). The browser needs to support WebUSB, currently only Chrome. On the USB device you can implement the WebUSB descriptor to link to your own website. This will give a notification on your desktop to open your website.
- roxgib 4y agoThanks, I think I misunderstood the last bit to mean the USB device needed to specifically support WebUSB.
- ficklepickle 4y agoApparently the basic requirement is that the device should not have a driver already claiming the interface. More info here: https://web.dev/build-for-webusb/ https://web.dev/build-for-webusb/