Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run webcam USB 0 in window #706

Open
duy1851999 opened this issue Jul 10, 2024 · 4 comments
Open

Run webcam USB 0 in window #706

duy1851999 opened this issue Jul 10, 2024 · 4 comments

Comments

@duy1851999
Copy link

Hi sir, How to run webrtc-streamer by webcam USB 0 in window?

@mpromonet
Copy link
Owner

Hi @duy1851999

USB camera should be detected on windows, what is your question ?

Best Regards
Michel

@duy1851999
Copy link
Author

I run docker run --device=/dev/video0 -p 8000:8000 -it mpromonet/webrtc-streamer in ubuntu, it run ok. But when I change to window and run like that: docker run --device=/dev/video0 -p 8000:8000 -it mpromonet/webrtc-streamer or docker run --device=0 -p 8000:8000 -it mpromonet/webrtc-streamer . It has the error:
docker: Error response from daemon: error gathering device information while adding custom device "/dev/video0": no such file or directory. The question is How to run the webrtc on window(not linux)?

@duy1851999
Copy link
Author

I think when I run docker on window, the docker is not detect USB camera, but it ok with rtsp camera

@mpromonet
Copy link
Owner

Hi @duy1851999

You can access the camera running webrtc-streamer as a windows application.
If you link to bind usb device to wsl you may look to https://learn.microsoft.com/en-us/windows/wsl/connect-usb.

Best Regards,
Michel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants