Flag: "--enable-video-as-images" Only on Android Description: "Allows muted videos to autoplay."
I think the best way to implement this is to have a Chrome flags setting a Blink RuntimeFlag.
Issue 616823 has been merged into this issue.
After offline discussion renamed the flag to --enable-autoplay-muted-videos
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b28c363973c83300ef6c99c5433f1053fef4b2a7 commit b28c363973c83300ef6c99c5433f1053fef4b2a7 Author: avayvod <avayvod@chromium.org> Date: Thu Jun 09 11:19:06 2016 [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 Review-Url: https://codereview.chromium.org/2039773003 Cr-Commit-Position: refs/heads/master@{#398840} [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/chrome/app/generated_resources.grd [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/chrome/browser/about_flags.cc [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/browser/renderer_host/render_view_host_impl.cc [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/public/common/common_param_traits_macros.h [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/public/common/content_switches.cc [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/public/common/content_switches.h [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/public/common/web_preferences.cc [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/public/common/web_preferences.h [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/content/renderer/render_view_impl.cc [add] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/third_party/WebKit/LayoutTests/media/autoplay-muted.html [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/third_party/WebKit/public/web/WebRuntimeFeatures.h [modify] https://crrev.com/b28c363973c83300ef6c99c5433f1053fef4b2a7/tools/metrics/histograms/histograms.xml
Comment 1 by mlamouri@chromium.org
, Jun 6 2016