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.
I would expect that the video would be prevented from autoplaying
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.
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.
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