Don't trigger remote playback device discovery for invisible media elements |
|||||||||||||
Issue descriptionToday, the media flinging feature will start looking for remote playback devices as soon as the page creates a media element. To save some power, we'd want to do it only when the page and the media element is visible (as it only matters for the media controls on the element). For the RemotePlayback API I'm not sure if we should limit it to the media element being visible as the UI controls might be elsewhere on the page and Chrome has no way to know where these controls are.
,
Apr 1 2016
Not sure I understand 100% what you mean by the question :) I think the statement below summarizes my thoughts well so far. The background discovery for remote playback of a media element will happen if and only if: - when the background discovery is available on the platform (e.g. not on low ram Android devices). - the media element has a compatible source - the media element is visible (or even only when its default remote playback / cast button is visible) or there's an alive RemotePlaybackAvailability object tied to the media element and the frame it belongs to is visible connect() usually means active device discovery while the picker UI is open.
,
Apr 1 2016
,
Apr 3 2016
Sorry, my question was a bit too short :) When using the Remote Playback API, shouldn't we start discovery only if connect() or getAvailabalitiy() is called?
,
Apr 4 2016
Using the Remote Playback API is totally agnostic to the default media flinging feature here - if the website is using default controls or is hiding the controls but we show the overlay, it doesn't matter if the API is being used or not; if the Cast button could be visible, Chrome needs to do discovery.
,
Apr 4 2016
And yes, for RM API we will only trigger discovery on connect() / getAvailability(). The statement in #0 is just to underline that the media element visibility can't be used in general to stop it.
,
Jun 1 2016
Moving this nonessential bug to the next milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 15 2016
This issue has been moved once and is lower than Pri-1. Removing the milestone. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 17 2016
,
Mar 23 2017
,
May 10 2017
Anton, is this something you can consider as part of the rewrite of flinging?
,
May 31 2017
,
Aug 14 2017
,
Aug 15
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 21
Thomas - would you be able to check to see if the implementation has a power-saving optimization like this? if not, it seems like a good feature request. thanks!
,
Aug 21
,
Yesterday
(35 hours ago)
|
|||||||||||||
►
Sign in to add a comment |
|||||||||||||
Comment 1 by mlamouri@chromium.org
, Mar 31 2016