Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 2047333002: Pause autoplay muted video when unmuting if there's no user gesture (Closed)

Created:
4 years, 6 months ago by whywhat
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@autoplay-flag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pause autoplay muted video when unmuting if there's no user gesture BUG=617598 TEST=https://avayvod.github.io/autoplay-test.html Committed: https://crrev.com/73df13de2a2ba7d1d7e132a3934d4d39f1959b66 Cr-Commit-Position: refs/heads/master@{#399174}

Patch Set 1 #

Patch Set 2 : Added layout test for pausing when unmute #

Patch Set 3 : Added a test case for unmuting with gesture #

Patch Set 4 : Fixed accidental ws change #

Total comments: 1

Patch Set 5 : Check isGestureNeeded when unmuting #

Total comments: 3

Patch Set 6 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -18 lines) Patch
M third_party/WebKit/LayoutTests/media/autoplay-muted.html View 1 2 3 4 5 1 chunk +45 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (10 generated)
whywhat
PTaL I feel like having isGestureNeeded... method un-const-ed and have a side effect is not ...
4 years, 6 months ago (2016-06-08 12:45:57 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047333002/1
4 years, 6 months ago (2016-06-08 12:46:38 UTC) #4
whywhat
Added layout test for pausing when unmute
4 years, 6 months ago (2016-06-08 12:57:56 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047333002/20001
4 years, 6 months ago (2016-06-08 13:02:20 UTC) #7
whywhat
Added a test case for unmuting with gesture
4 years, 6 months ago (2016-06-08 15:16:58 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047333002/40001
4 years, 6 months ago (2016-06-08 15:18:06 UTC) #10
whywhat
Fixed accidental ws change
4 years, 6 months ago (2016-06-08 15:19:12 UTC) #11
mlamouri (slow - plz ping)
What about having: enum GestureRequirement { None, NoneBecauseMuted, Yes } GestureRequirement getGestureRequirement() const; then code ...
4 years, 6 months ago (2016-06-09 11:34:15 UTC) #12
foolip
https://codereview.chromium.org/2047333002/diff/60001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2047333002/diff/60001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2282 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:2282: if (!muted && m_isAutoplayingMuted) { As per https://github.com/whatwg/html/issues/976 I ...
4 years, 6 months ago (2016-06-09 11:41:43 UTC) #14
mlamouri (slow - plz ping)
I'm really worried this would break way too many websites. Actually, I wonder if we ...
4 years, 6 months ago (2016-06-09 13:17:13 UTC) #15
whywhat
On 2016/06/09 at 13:17:13, mlamouri wrote: > I'm really worried this would break way too ...
4 years, 6 months ago (2016-06-09 13:51:01 UTC) #16
mlamouri (slow - plz ping)
On 2016/06/09 at 13:51:01, avayvod wrote: > On 2016/06/09 at 13:17:13, mlamouri wrote: > > ...
4 years, 6 months ago (2016-06-09 14:19:59 UTC) #17
whywhat
Check isGestureNeeded when unmuting
4 years, 6 months ago (2016-06-09 14:59:01 UTC) #18
whywhat
PTAL
4 years, 6 months ago (2016-06-09 15:00:22 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047333002/80001
4 years, 6 months ago (2016-06-09 15:01:12 UTC) #21
foolip
On 2016/06/09 14:19:59, Mounir Lamouri (slow) wrote: > On 2016/06/09 at 13:51:01, avayvod wrote: > ...
4 years, 6 months ago (2016-06-09 15:10:46 UTC) #22
foolip
On 2016/06/09 15:10:46, Philip Jägenstedt wrote: > On 2016/06/09 14:19:59, Mounir Lamouri (slow) wrote: > ...
4 years, 6 months ago (2016-06-09 15:31:32 UTC) #23
whywhat
On 2016/06/09 at 15:31:32, foolip wrote: > On 2016/06/09 15:10:46, Philip Jägenstedt wrote: > > ...
4 years, 6 months ago (2016-06-09 15:57:06 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 16:51:56 UTC) #26
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/2047333002/diff/80001/third_party/WebKit/LayoutTests/media/autoplay-muted.html File third_party/WebKit/LayoutTests/media/autoplay-muted.html (right): https://codereview.chromium.org/2047333002/diff/80001/third_party/WebKit/LayoutTests/media/autoplay-muted.html#newcode37 third_party/WebKit/LayoutTests/media/autoplay-muted.html:37: { style: { at end ...
4 years, 6 months ago (2016-06-09 17:43:16 UTC) #27
whywhat
Addressed comments
4 years, 6 months ago (2016-06-10 10:52:38 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047333002/100001
4 years, 6 months ago (2016-06-10 10:53:06 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-10 14:14:44 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 14:16:07 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/73df13de2a2ba7d1d7e132a3934d4d39f1959b66
Cr-Commit-Position: refs/heads/master@{#399174}

Powered by Google App Engine
This is Rietveld 408576698