There's a |suspend| state in the media playback state machine, which is controlled by |WebMediaPlayerImpl|. However, |suspend| state sometimes doesn't work properly on some content embedders like chromecast because resuming a background video from |suspend| is different from resuming it from |paused|. In order to make the media player work in such cases, two major changes are needed:
- Only control |can_auto_suspend| in WebMediaPlayerImpl;
- Add a flag to enable/disable playing background video in runtime.
Comment 1 by bugdroid1@chromium.org
, Jan 16