Closed Bug 1292894 Opened 8 years ago Closed 7 years ago

"Media.autoplay.enabled=false" does not work on clips.twitch.tv

Categories

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

48 Branch
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
platform-rel --- -

People

(Reporter: kitynska, Unassigned)

Details

(Whiteboard: [platform-rel-Twitch])

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160726073904

Steps to reproduce:

Set media.autoplay.enabled to false and open this example: https://clips.twitch.tv/eleaguetv/EasyTurtleDOOMGuy


Actual results:

The video starts playing.


Expected results:

The video should be paused.
the page starts playing the video by JavaScript, not autoplay attribute.
media.autoplay.enabled pref doesn't have any effect for the case.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
QA Whiteboard: [bugday-20160808]
Resolution: --- → INVALID
(In reply to Tooru Fujisawa [:arai] from comment #1)
> the page starts playing the video by JavaScript, not autoplay attribute.
> media.autoplay.enabled pref doesn't have any effect for the case.

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=659285#c113 it should and the observations from the testcase of https://bugzilla.mozilla.org/show_bug.cgi?id=1313233 confirm that Firefox is capable of blocking javascript-driven play() invocations if media.autoplay.enabled is set to false.
thanks for pointing that out.
reopening
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Status: REOPENED → UNCONFIRMED
Component: Untriaged → Audio/Video
Ever confirmed: false
Product: Firefox → Core
Component: Audio/Video → Audio/Video: Playback
cbsnews.com also has a thumbnail player that bypasses media.autoplay.enabled=false.
Here's another site that that plays videos automatically even if Media.autoplay.enabled is set to false, I guess it's the JavaScript method with this too:

http://www.iltalehti.fi/uutiset/201612292200046758_uu.shtml
Addon to my last message (it seems that posted messages can't be edited):

There seems to be different scenarios for the movie to play automatically on http://www.iltalehti.fi/uutiset/201612292200046758_uu.shtml :

1) If one opens the link straight to the same tab = the video doesn't start automatically.
1b) If one switches to other tab and back after the page has loaded = the video STARTS automatically.

2) If one opens the link in background tab, but switches to it before the page loads completely = the video doesn't start automatically.
2b) If one switches to other tab and back after the page has loaded = the video STARTS automatically.

3) If one opens the link in background tab, and switches to it AFTER the page has loaded completely = the video STARTS automatically.

So it seems that Media.autoplay.enabled set to false, only works with JavaScript play() invocations when the page loads completely in an ACTIVE tab.
platform-rel: --- → ?
Whiteboard: [platform-rel-Twitch]
(hidden pref)
platform-rel: ? → -
Close this bug because both video [1] won't be autoplay if the pref is off, tested on Nightly 58.0a1 (2017-10-30) on OSX.

[1] 
http://www.iltalehti.fi/uutiset/201612292200046758_uu.shtml
https://clips.twitch.tv/eleaguetv/EasyTurtleDOOMGuy
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.