Closed Bug 1720337 Opened 5 years ago Closed 5 years ago

Autoplay settings do not apply on AMP websites

Categories

(Core :: Audio/Video: Playback, defect)

Unspecified
All
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: amejia, Unassigned)

Details

Related Fenix issue https://github.com/mozilla-mobile/fenix/issues/20233
STR.

  1. Block all the autoplay (AUTOPLAY_INAUDIBLE, PERMISSION_AUTOPLAY_AUDIBLE) permissions.
  2. Navigate to https://amp.reddit.com/r/xboxone/comments/88jbo6/thanks_to_the_guy_who_recommended_buying/
  3. Scroll down until you see, the video section.

Expected behavior:
None video or audio are played.

Actual behavior:
Video and audio are playing without without the autoplay (AUTOPLAY_INAUDIBLE, PERMISSION_AUTOPLAY_AUDIBLE) permissions .

Not sure if this is platform issue, as I'm also able to reproduce it on the mobile view of Firefox desktop with the profile Nokia 8110 4G.

Firefox desktop mobile profile:

Name
Nokia 8110 4G

User Agent String
Mozilla/5.0 (Mobile; Nokia 8110 4G; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.5

Size
240x320

GeckoView info

GV: 91.0a1-20210710094507

Adding Emilio, as he has worked on similar autoplay issues, hopefully he can help us to clarify if this is a platform bug. Thanks in advance.

Flags: needinfo?(emilio)

I see the page fall back to a gif, which isn't affected by video autoplay settings (and that's expected)... Is that what you see?

Flags: needinfo?(emilio) → needinfo?(amejiamarmol)

Oh, apparently some of the reports in the original issue claim there is sound? (and thus that it is a video?)

I'll take a closer look at that.

Flags: needinfo?(emilio)

I created a small video, hope it helps to reproduce. To be able to see the issue I have to scroll down to the video section, and wait for the content to load. This is the same issue that we are seeing on Fenix. Let me know if that helps or I could help with anything else :)

Flags: needinfo?(emilio)
Flags: needinfo?(amejiamarmol)
Component: General → Audio/Video: Playback
Product: GeckoView → Core

Alastor, could you please help? Thanks!

Flags: needinfo?(alwu)

Our default blocking autoplay policy would only block autoplay before the page get activated by user gestures, so when you click on the page (for continuing viewing this on the browser), that already activate the page and unblock the page. If users want to avoid this situation, they can change the blocking strategy.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(alwu)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.