WICG / webusb

Connecting hardware to the web.
https://wicg.github.io/webusb/
Other
1.3k stars 126 forks source link

Use webusb to get otg-usb uvc camera on mobile #194

Closed Niko-La closed 2 years ago

Niko-La commented 3 years ago

Webrtc does not give access to the uvc usb webcam attached via otg cable.

This would be a huge feature if webusb can help.

Avoiding the need to build a life native apps would be great

With mobile streaming the possibilities are great to get better video on any smartphone.

Grovkillen commented 3 years ago

Can't you just claim that endpoint with current API? It's essentially just a bulk transfer which continuously send data. Just process that dataview and push it along to a video element.

reillyeon commented 2 years ago

UVC cameras should be supported by the operating system and be accessible via WebRTC. If they are not this is either an operating system or WebRTC implementation bug.

zsinba commented 1 year ago

What is the conclusion of this question? The UVC can be used as a camera on the PC side. But not on the mobile side, at least not on a camera like UVC-OTG. What can I do?

8749236 commented 1 month ago

I really need this feature as well. Some android phones default to front and back camera and navigator.mediaDevices.getUserMedia does not return all connected camera. Only the WebUSB will properly return all connected devices. This makes it extremely difficult to support USB cameras connected to android phone.