processing / processing/p5.js-web-editor

webcam capture fails in editor on firefox android

Open
#3,075 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure from the linked editor sketch using createCapture(VIDEO) on Firefox 124 for Android, then compare it with the working p5.js DOM video capture example. Investigate why the editor produces an empty error stack and verify that webcam capture works or that the user receives a useful error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.