# Looking for a solution to make video autoplay work with p5.js on Firefox for Android, while it works in other browsers

**URL:** <https://discourse.processing.org/t/looking-for-a-solution-to-make-video-autoplay-work-with-p5-js-on-firefox-for-android-while-it-works-in-other-browsers/45850>\
**Category:** Coding Questions\
**Created:** [February 27, 2025, 4:38pm UTC](https://discourse.processing.org/t/looking-for-a-solution-to-make-video-autoplay-work-with-p5-js-on-firefox-for-android-while-it-works-in-other-browsers/45850 "2025-02-27T16:38:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![v\_v.c](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@v\_v.c](https://discourse.processing.org/u/v_v.c)\
**Post date:** [February 27, 2025, 4:38pm UTC](https://discourse.processing.org/t/looking-for-a-solution-to-make-video-autoplay-work-with-p5-js-on-firefox-for-android-while-it-works-in-other-browsers/45850/1 "2025-02-27T16:38:57Z")

</div>

Hey all

I’m trying to get p5.js to autoplay video on Firefox Android, but I haven’t found a solution yet. Here’s a CodePen link demonstrating the issue:

https://codepen.io/vincent-vandercruyssen-kunstkaai/embed/preview/GgRNYqm?default-tabs=html%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=GgRNYqm

The page contains a video played with generic HTML and another example using p5.js. Both work perfectly in desktop browsers and Chromium-based browsers on Android. However, in Firefox Android, only the HTML-example works, despite having the same attributes, as shown in my screenshots…

Any ideas how to get this working?

 ![brave vs firefox android](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/d/7d8bf78deba18f04850f7d4da8c987425f493f8d.jpeg)

---

<div class="post-metadata">

**Author:** ![v\_v.c](https://avatars.discourse-cdn.com/v4/letter/v/c4cdca/32.png) [@v\_v.c](https://discourse.processing.org/u/v_v.c)\
**Post date:** [March 2, 2025, 9:02am UTC](https://discourse.processing.org/t/looking-for-a-solution-to-make-video-autoplay-work-with-p5-js-on-firefox-for-android-while-it-works-in-other-browsers/45850/2 "2025-03-02T09:02:17Z")

</div>

It appears to be a bug that has remained unfixed for at least six years:

> **[1526207 - Calling \`drawImage()\` fails when drawing a video on android](https://bugzilla.mozilla.org/show_bug.cgi?id=1526207)**
>
> NEW (sotaro.ikeda.g) in Core - Graphics: Canvas2D. Last updated 2025-01-30.

> <https://stackoverflow.com/questions/51717938/draw-a-video-to-canvas-firefox-mobile>
