Disabling decoding background video doesn't work when window is backgrounded |
|||
Issue descriptionChrome Version : 61.0.3159.0 OS Version: 9756.0.0 Prerequisite: Enable chrome://flags/#disable-background-video-track What steps will reproduce the problem? 1. Go to https://www.youtube.com/watch?v=8oB3LPeASB4 in Window A 2. Switch to a foregrounded Window B (hiding Window A completely) 3. Check out about:media-internals YouTube video player logs What is the expected result? It should include "Selected video track: []" that indicates that video tracks has been disabled when video was in the background. What happens instead of that? It does not. Note that disabling decoding background video works great when switching simply tabs in the same window.
,
Jul 19 2017
Chrome OS should be able to know don't you think?
,
Jul 19 2017
Chrome has a notion of visibility (ie. visible/backgrounded) and that's what is used here. The concept is more general than this feature. Whether we should be smarter on Chrome OS, I don't know. I think that the feature should use the generic signal and if Chrome OS marks the tab has hidden when fully obfuscated, it would just work.
,
Jul 19 2017
Note that both Windows A and B were maximized. Do you know who could help us regarding this signal?
,
Jul 19 2017
I would start with sky@
,
Jul 19 2017
Yes, this is WAI AFAIK. We've had issues with this in the past even for session restore and video playback; the "background" window is not actually considered backgrounded.
,
Jul 21 2017
,
Jul 21 2017
Indeed. It is Work As Intended. "To correctly determine if the active tab of a non-active window is not visible to the user requires non-trivial operations that would need to be re-run any time a window on the desktop changes its bounds." ;( |
|||
►
Sign in to add a comment |
|||
Comment 1 by mlamouri@chromium.org
, Jul 19 2017