New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 597281 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

Don't trigger remote playback device discovery for invisible media elements

Project Member Reported by avayvod@chromium.org, Mar 23 2016

Issue description

Today, 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.
 
Shouldn't we simply use availability/connect() for RM API?
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.
Cc: -aber...@chromium.org
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?
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.
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.
Project Member

Comment 7 by sheriffbot@chromium.org, Jun 1 2016

Labels: -M-52 M-53 MovedFrom-52
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 8 by sheriffbot@chromium.org, Jul 15 2016

Labels: -M-53 MovedFrom-53
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

Comment 9 by sko...@chromium.org, Nov 17 2016

Labels: Hotlist-Fixit
Status: Available (was: Untriaged)
Labels: -MovedFrom-52 -MovedFrom-53 M-60
Owner: avayvod@chromium.org
Status: Assigned (was: Available)
Anton, is this something you can consider as part of the rewrite of flinging?
Labels: -M-60 M-61
Labels: -M-61
Owner: ----
Status: Available (was: Assigned)
Project Member

Comment 14 by sheriffbot@chromium.org, Aug 15

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Owner: tguilbert@chromium.org
Status: Assigned (was: Untriaged)
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!
Labels: -Type-Bug Type-Feature

Comment 17 by tguilbert@chromium.org, Yesterday (35 hours ago)

Labels: Videostack-RemotePlayback

Sign in to add a comment