-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Regarding support for multiple webcams #10337
Comments
Hi @Anonyame multiple webcams are supported in Gradio with the option to switch between them. But the issue may be related to this:
Does this issue also happen when you create a share link with Gradio ( |
Yes, this issue consistently reoccurs under any network settings. It is not limited to my phone; it also reliably reoccurs on computers, including the computer used to deploy the service itself. |
What OS/browser are you running on? Are there any other special things that may be happening in your environment related to the webcams? |
The backend has been set up on WSL Ubuntu, Windows, and macOS, while the frontend has been tested on Firefox and Chrome for PC and Android. This issue consistently reproduces across nearly all combinations. |
Does this happen when you run the same code in a Google Colab notebook? |
Oh, I haven't tested that; my internet environment is restricted, so it's difficult for me to access Google. 😢 |
I test from the coding of @Anonyame , it work perfect. |
Is your feature request related to a problem? Please describe.
I encountered the
image.no_webcam_support
issue when trying out examples provided in the documentation during my recent project using Gradio. After reviewing some previously reported Issues, I found that this problem seems to commonly occur on computers with more than one webcam installed. My phone has both a front and rear camera, which can be detected and opened bywebcamtests.com
. When deploying Gradio within a local network and accessing it from my phone, theimage.no_webcam_support
issue consistently reoccurs.Ref:
#10143 (This issue has not explained the cause of the problem, but the question it raises is the same as mine.)
#10049 (This issue was resolved by uninstalling OBS to remove the
OBS Virtual Camera
.)#7223 (This issue is marked as similar to #7021. No resolution measures are mentioned.)
#7021 (This issue mentions that the cause of the problem is also
OBS Virtual Camera
.)Describe the solution you'd like
I would like to use this opportunity to propose a Feature Request for developers to address what appears to be an issue caused by multiple webcams. Thank you!
Additional context
The used code:
File
app.py
:File
gr_util.py
:Starts by executing
python app.py
.The situation on the webpage:
The text was updated successfully, but these errors were encountered: