Video-Texture does not work under FF for Android

Hi @Rechi,

I confirmed that my projects are still working on Firefox Mobile 99.2.0. After a bit of testing with the tutorial projects, it seems like it’s a problem with my old Firefox nemesis RGB textures. I was consistently able to break and fix the textures on the tutorial project (On FF Mobile) by changing the generated texture to use RGBA instead of RGB like this:

    this.videoTexture = new pc.Texture(app.graphicsDevice, {
        format: pc.PIXELFORMAT_R8_G8_B8_A8,
        minFilter: pc.FILTER_LINEAR_MIPMAP_LINEAR,
        magFilter: pc.FILTER_LINEAR,
        addressU: pc.ADDRESS_CLAMP_TO_EDGE,
        addressV: pc.ADDRESS_CLAMP_TO_EDGE,
        mipmaps: true
    });

You will want to make this change anyway because there is a known performance issue with Firefox Desktop surrounding video textures using RGB textures instead of RGBA:

Let me know if this works for you. If not I can keep looking around, especially if you’re able to share your project.

1 Like