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

Issue 610782 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Track when screen mirroring is on when users play media in Chrome for Android

Project Member Reported by avayvod@chromium.org, May 10 2016

Issue description

Would be useful to know how often users use screen mirroring to watch/listen to web media on external screens (Cast devices, etc).

According to Android's android.app.Presentation (http://developer.android.com/reference/android/app/Presentation.html) it seems like all we need to do is to check the following:

MediaRouter mediaRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
 MediaRouter.RouteInfo route = mediaRouter.getSelectedRoute();
 if (route != null) {
     Display presentationDisplay = route.getPresentationDisplay();
     if (presentationDisplay != null) {
       ... screen mirroring is on
     }
 }

We'll have to filter out Cast devices vs HDMI over USB.

With Spitzer I think we could just record the state when any tab becomes audible. Adding Dale for his thoughts on where the best to plug this check and UMA in (if we could distinguish between audio and video, fs or not, it'd be great).

Perhaps, especially if we already have playback user actions (like "playback started"/"playback stopped") we could add "screen mirroring started" and "screen mirroring stopped" and then get the usage we need from that?

Based on that metric we'd prioritize optimizing media remoting when screen is being mirrored.
 
Labels: -M-52 M-53
Labels: -M-53 M-56

Comment 3 by sko...@chromium.org, Nov 10 2016

Ping Anton, can you update status/milestone?
Labels: -M-56
Owner: mlamouri@chromium.org
Status: Untriaged (was: Available)
Assigning all my bugs to Mounir for him to triage and close/reassign later.

Comment 6 by sko...@chromium.org, Oct 23 2017

Status: Assigned (was: Untriaged)
Assigning to Mounir for decision so that these get out of the general untriaged bucket.  
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment