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

webcam capture fails in editor on firefox android #3075

Open
eyaler opened this issue Mar 31, 2024 · 1 comment
Open

webcam capture fails in editor on firefox android #3075

eyaler opened this issue Mar 31, 2024 · 1 comment
Labels

Comments

@eyaler
Copy link

eyaler commented Mar 31, 2024

p5.js version

1.9.2, 1.9.1, 1.9.0, 1.4.0

What is your operating system?

Android

Web browser and version

firefox 124

Actual Behavior

createCapture(VIDEO) fails with an empty error stack when running a standard example

e.g: https://editor.p5js.org/eyaler/sketches/HhWWp4a3y

(firefox windows and chrome android work fine)

however it does works when run here: https://p5js.org/examples/dom-video-capture.html

Expected Behavior

show webcam. if there is an error - show a useful message

Steps to reproduce

https://editor.p5js.org/eyaler/sketches/HhWWp4a3y

@eyaler eyaler added the Bug label Mar 31, 2024
@lindapaiste
Copy link
Collaborator

Possibly related to this discussion on p5.js repo re: showing errors when createCapture(VIDEO) fails.

however it does works when run here: https://p5js.org/examples/dom-video-capture.html

Hmmm....so it does sound like this is specific to the editor somehow. I wonder if there is something unique about how Firefox handles permissions for code that is run in an iframe? But the p5 examples site also uses an iframe and doesn't have the problem.

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

No branches or pull requests

2 participants