Fenix: [Bug] Blocking of autoplay videos does not work as expected

Created on 5 Mar 2020  路  7Comments  路  Source: mozilla-mobile/fenix

Steps to reproduce

Open Firefox Preview Nightly.
Under settings -> permissions, enable blocking of autoplaying video and audio.
Open www.nrk.no and scroll down until you find a autoplaying video.

Expected behavior

I would expect that the video would be prevented from autoplaying

Actual behavior

The video autoplays, however the sound is disabled. I am however unsure if this is because Fenix is blocking it or if nrk is being considerate and having it by default disabled.

Device information

  • Android device: OnePlus 7t
  • Fenix version: Nightly 200304 06:01 (Build #20640607)
E8 Media S2 engverified 馃悶 bug

Most helpful comment

This happened because at the moment we are not disabling autoplay for muted content. We are working on an advance settings for autoplay for more info see https://github.com/mozilla-mobile/fenix/issues/8017

All 7 comments

This happened because at the moment we are not disabling autoplay for muted content. We are working on an advance settings for autoplay for more info see https://github.com/mozilla-mobile/fenix/issues/8017

Now the auto-play videos on nrk.no are always blocked for me (no matter which setting I have), but on twitter.com they are not being blocked with Block video and audio set.

I don't know whether it is related. In some sites, no matter where I click on the webpage, the media will start to play. For example,
https://www.lachainemeteo.com/meteo-france/ville-33/previsions-meteo-paris-aujourdhui
This is also bad. I consider this as a variant of autoplay.

I was doing some tests on www.nrk.no, from a user perspective no video/audio was played while I was testing. I also tested on Firefox desktop (with allow video/audio) and Chrome and neither browser video or audio played, not sure if the site has changed its behaviour so far. From code perspective, I saw the permissions for ContentAutoPlayInaudible andContentAutoPlayAudible requested and allowed/denied depending on the settings on Fenix.

Thanks for looking into this! I think www.nrk.no might have changed the behaviour of their videos as I no longer see any autoplay, neither with blocking enabled nor disabled.

The issue is address on https://github.com/mozilla-mobile/android-components/pull/8944 and will be fixed when Fenix update to the new ac version.

Verified as fixed on the latest Nightly 17/11 with Google Pixel 4 XL (Android 11).
Note that the auto-play was blocked and when tapping on the play button everything works as expected and the video/audio started to play.

Was this page helpful?
0 / 5 - 0 ratings