Open
Description
Most appropriate sub-area of p5.js?
- Accessibility (Web Accessibility)
- Build tools and processes
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Friendly error system
- Image
- IO (Input/Output)
- Localization
- Math
- Unit Testing
- Typography
- Utilities
- WebGL
- Other (Video)
Details about the bug:
- p5.js version: 1.4
- Web browser and version: Firefox 91.1.0
- Operating System: Android 6.0.1
- Steps to reproduce this:
- Create a video in a canvas:
let video;
function setup() {
createCanvas(710, 400);
video = createVideo(['video.mov']);
video.hide();
}
function draw() {
background(0);
image(video, 0, 0);
}
- In Firefox for Android, the video never renders. The same code works for Firefox desktop, Firefox for iOS, and any other browser.
- The video canvas example in p5.js website (https://p5js.org/examples/dom-video-canvas.html) also does not render the video
- However, rendering a video in a video element (such as in the example: https://p5js.org/examples/dom-video.html) works as expected.