Improve mechanism for enabling/disabling media suspend when backgrounded |
||
Issue descriptionCurrently the behaviour is controlled (1) with different defaults for OS_ANDROID, and (2) with switches kEnableMediaSuspend/kDisableMediaSuspend to override the default. We have some new hardware running cast_shell where we need to turn this feature on/off depending on the application. Setting the switch at render process start isn't a great mechanism (e.g. prevents using RenderProcessHost::WarmupSpareRenderProcessHost, which we'd like to use to optimize app start). Ideally we could control this from content embedder code, similar to idle suspend.
,
Jul 25
Now controlled by ContentRendererClient. The switches still exist and can override that mechanism; they are still used (1) in a browser test, filed bug 867146 to follow up and remove that (2) in cast_shell, will follow up to use the ContentRendererClient method instead.
,
Aug 9
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1405bbcf85b5c90ed88adf773219391688230768 commit 1405bbcf85b5c90ed88adf773219391688230768 Author: Luke Halliwell <halliwell@chromium.org> Date: Thu Aug 09 12:59:46 2018 Control background media suspend per-RenderFrame As a follow-up to https://chromium-review.googlesource.com/c/chromium/src/+/1133975 Realized when plumbing this through in chromecast's render client that we need the RenderFrame. Bug: 862698 Change-Id: I1764dcd25dacac7a406d8b179d7abb5af2d14dad Reviewed-on: https://chromium-review.googlesource.com/1151761 Reviewed-by: Dan Sanders <sandersd@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Luke Halliwell <halliwell@chromium.org> Cr-Commit-Position: refs/heads/master@{#581879} [modify] https://crrev.com/1405bbcf85b5c90ed88adf773219391688230768/content/public/renderer/content_renderer_client.cc [modify] https://crrev.com/1405bbcf85b5c90ed88adf773219391688230768/content/public/renderer/content_renderer_client.h [modify] https://crrev.com/1405bbcf85b5c90ed88adf773219391688230768/content/renderer/media/renderer_webmediaplayer_delegate.cc |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jul 25