Closed Bug 1590502 Opened 6 years ago Closed 6 years ago

Autoplay=off is not working on parts of Youtube

Categories

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

69 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: alerter4, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

Go to Firefox settings, look for Autoplay, and set default autoplay block audio and video for all sites. Make sure the whitelist is empty.

  1. Open a Youtube video by pasting a link in the address bar.
  2. Open a Youtube channel video list (i.e. go to a channel Homepage, then click on Videos bookmark on it) and click on any upload.

Actual results:

  1. The video does not autoplay, and the play button appears in the middle of the player to start it.
  2. The video automatically starts, even though autoplay is off.

Expected results:

  1. as expected
  2. should also NOT autoplay, i.e. there is a play button in the middle of the player to start the playback.

Tested on 69 and 70.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core

Reading the report it appears that the numbers represent 2 separate use cases, rather than steps in an individual use case, is that correct? Assuming it is, it sounds like the second use case is the problematic one.

My understanding is that block autoplay does not prevent all videos from autoplaying, but rather prevents videos from playing until you interact with the page. In that second case I believe that because you're clicking on a video in that channel page, Firefox considers that page interacted with and allows the video to play.

Alastor, can you confirm that my understanding is correct here?

Flags: needinfo?(alwu)

(In reply to Bryce Seager van Dyk (:bryce) from comment #2)

Firefox considers that page interacted with and allows the video to play.

I don't think this is correct, as this "interaction" merely opens the video page, with exact same link as case one. Home-Videos section is basically video page links registry, and by clicking a video, you go to the video webpage.
Also, opening videos (=clicking links) from other Youtube lists (i.e. your own uploads from Video Manager or Studio Beta) also acts as expected - the playback does not start.

However, if you don't click on those videos, but rather open them in new FF window or tab, they don't autostart indeed. Interesting.
I don't think this subtle discrepancy (i.e. direct click or open new window/tab) should render opposite results. Many people open the videos first, then connect their earphones and then play the video. So they expect the video won't autoplay in any case until play button is clicked, and this behavior of blasting sound may be really embarrassing is public areas.
Autoplay=off is autoplay=off, not autoplay-if.
Alastor?

Yes, as Bryce said, our default autoplay policy would only block autoplay before a site is activated by user gestures (mouse clicking, keyboard pressing, touching). Once site has been activated, then all media are allowed to start autoplay.

In your case, after you click on the page, even when you see another new page, Youtube actually use the same document, which you have activated before, to display the new page, so media in the new page can be allowed to autoplay.

This default autoplay model is what we call user-gesture-activation model, which proposed by Chrome and they use it as well. If you would like to only allow autoplay when you click media, you can set the pref media.autoplay.enabled.user-gestures-needed to false to see if that is what you need. However, unfortunately, this feature is not compatible to all sites due to some technical issues for now.

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