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

Issue 2039773003: [Android] Added a runtime flag to enable autoplay of muted videos. (Closed)

Created:
4 years, 6 months ago by whywhat
Modified:
4 years, 6 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jam, kinuko+watch, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Added a runtime flag to enable autoplay of muted videos. Allows autoplay of media if muted. Doesn't pause on unmute w/o user gesture yet. BUG=617592, 617595 TEST=avayvod.github.io/autoplay-test.html Committed: https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7 Cr-Commit-Position: refs/heads/master@{#398840}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed the unmute logic and reverted the log level #

Patch Set 3 : An attempt to add a layout test. #

Total comments: 2

Patch Set 4 : Fixed the layout test #

Patch Set 5 : Simplified the test code #

Patch Set 6 : Updated histograms.xml #

Patch Set 7 : Restored const-ness of isGestureNeeded... method #

Patch Set 8 : Renamed the flag to autoplay-muted-videos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/media/autoplay-muted.html View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 46 (17 generated)
whywhat
PTaL
4 years, 6 months ago (2016-06-06 16:05:52 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/2039773003/1
4 years, 6 months ago (2016-06-06 16:06:32 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/82526)
4 years, 6 months ago (2016-06-06 17:33:06 UTC) #6
mlamouri (slow - plz ping)
lgtm if you remove the auto-pause behaviour. Better to have this in another CL so ...
4 years, 6 months ago (2016-06-07 12:50:42 UTC) #7
whywhat
Removed the unmute logic and reverted the log level
4 years, 6 months ago (2016-06-07 14:18:36 UTC) #8
whywhat
https://codereview.chromium.org/2039773003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2039773003/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode97 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:97: #define MEDIA_LOG_LEVEL 0 On 2016/06/07 at 12:50:41, Mounir Lamouri ...
4 years, 6 months ago (2016-06-07 14:20:08 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/20001
4 years, 6 months ago (2016-06-07 14:23:57 UTC) #11
whywhat
An attempt to add a layout test.
4 years, 6 months ago (2016-06-07 15:21:53 UTC) #12
mlamouri (slow - plz ping)
https://codereview.chromium.org/2039773003/diff/40001/third_party/WebKit/LayoutTests/media/autoplay-muted.html File third_party/WebKit/LayoutTests/media/autoplay-muted.html (right): https://codereview.chromium.org/2039773003/diff/40001/third_party/WebKit/LayoutTests/media/autoplay-muted.html#newcode3 third_party/WebKit/LayoutTests/media/autoplay-muted.html:3: <script src="../resource/testharness.js"></script> You have a typo here I think ...
4 years, 6 months ago (2016-06-07 15:40:14 UTC) #14
whywhat
Fixed the layout test
4 years, 6 months ago (2016-06-07 17:39:36 UTC) #16
whywhat
https://codereview.chromium.org/2039773003/diff/40001/third_party/WebKit/LayoutTests/media/autoplay-muted.html File third_party/WebKit/LayoutTests/media/autoplay-muted.html (right): https://codereview.chromium.org/2039773003/diff/40001/third_party/WebKit/LayoutTests/media/autoplay-muted.html#newcode3 third_party/WebKit/LayoutTests/media/autoplay-muted.html:3: <script src="../resource/testharness.js"></script> On 2016/06/07 at 15:40:14, Mounir Lamouri (slow) ...
4 years, 6 months ago (2016-06-07 17:40:15 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/60001
4 years, 6 months ago (2016-06-07 17:41:18 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/83380)
4 years, 6 months ago (2016-06-07 18:31:24 UTC) #21
whywhat
Simplified the test code
4 years, 6 months ago (2016-06-07 19:20:38 UTC) #22
whywhat
Updated histograms.xml
4 years, 6 months ago (2016-06-07 20:13:13 UTC) #23
whywhat
Dear owners, ptal! Your approval powers are needed! isherman: tools/metrics/histograms/histograms.xml dcheng: content/public/common/common_param_traits_macros.h jochen: the rest ...
4 years, 6 months ago (2016-06-07 20:19:11 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/100001
4 years, 6 months ago (2016-06-07 20:32:38 UTC) #27
Ilya Sherman
histograms.xml lgtm
4 years, 6 months ago (2016-06-07 22:37:18 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 23:18:37 UTC) #30
whywhat
Restored const-ness of isGestureNeeded... method
4 years, 6 months ago (2016-06-08 12:38:04 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/120001
4 years, 6 months ago (2016-06-08 12:38:43 UTC) #33
whywhat
Renamed the flag to autoplay-muted-videos
4 years, 6 months ago (2016-06-08 13:49:31 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/140001
4 years, 6 months ago (2016-06-08 15:18:04 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 19:41:15 UTC) #38
dcheng
ipc lgtm
4 years, 6 months ago (2016-06-08 23:56:02 UTC) #39
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-09 11:08:38 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039773003/140001
4 years, 6 months ago (2016-06-09 11:15:13 UTC) #43
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-09 11:19:20 UTC) #44
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 11:20:46 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7
Cr-Commit-Position: refs/heads/master@{#398840}

Powered by Google App Engine
This is Rietveld 408576698