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

Issue 618417 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

[Media Router] Don't show mirroring cast modes when dialog started from a presentation request

Project Member Reported by btolsch@chromium.org, Jun 8 2016

Issue description

Currently, the MR dialog always shows mirroring cast modes.  However, it's less appropriate to do so when the dialog was started by a presentation request, where the intention is for the user to use the presentation request.
 
Components: Blink>PresentationAPI
The presentation request should be the default cast mode, correct?  Sometimes the user wants to cast but knows that the site provides a poor experience via the Presentation API.  In this case, we want to make the mirroring modes easily discoverable.

Status: WontFix (was: Assigned)

Comment 4 by mfo...@chromium.org, Jul 12 2016

Cc: -mfo...@chromium.org sko...@chromium.org btolsch@chromium.org
Owner: mfo...@chromium.org
Status: Available (was: WontFix)
I was investigating the state of our web platform tests and ran into a surprise.  Right now the Presentation API behavior is not ideal (and not to spec).

If you can new PresentationRequest("http://yahoo.com").start(), the dialog will appear with mirroring devices.   If the user selects one, MR will mirror the *current tab*, not yahoo.com, as we don't have 1-UA mode.  That's not what the user intended.

The spec says that we should reject if there are no presentation displays capable of displaying the given URL.

Here is what I think should happen:
- If availability = false for the PresentationRequest, then reject
- If availability = true, then open the dialog with default cast mode from the request and only sinks listed that can present the URL
- If availability is unresolved, open the dialog with an empty sink list.

To handle the case where we haven't gotten the initial sink list for the request, we should make sure the MR is not sending an empty sink list (and setting availability to false) before getting a query result from the MRPM.

In the case in comment #2, the URL is presentable (via Cast), but the user may prefer to mirror even when initiating casting from the page.  I think that will be covered by sticky override behavior.

Implementation notes:

- Ideally the rejection behavior can be implemented in Blink and doesn't require lots of plumbing; however, it looks like there is no direct reference from a PresentationRequest to PresentationAvailability, so hmmm.

- The logic in MediaRouterDialogController will need some tweaks it looks like to configure the dialog specifically for PresentationRequests.

Comment 5 by mfo...@chromium.org, Mar 22 2017

Status: WontFix (was: Available)
With the imminent launch of Presentation API 1-UA mode, it will be possible to present URLs to mirroring targets.

Sign in to add a comment