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

Issue 705610 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 693309
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug


Participants' hotlists:
presentation-api-1ua


Sign in to add a comment

[Presentation API] Can't reconnect() to 1-UA presentation on googlechrome.github.io

Project Member Reported by mfo...@chromium.org, Mar 27 2017

Issue description

Chrome Version: 59.0.3053.0
OS: Mac OS X 10.12 (probably all desktop)

What steps will reproduce the problem?
(1) Visit https://googlechrome.github.io/samples/presentation-api/, click new() and start(), pick a Cast device to start 1-UA presentation
(2) Open https://googlechrome.github.io/samples/presentation-api/ in another tab, click new()
(3) Copy-paste presentation id from tab in #1 to input in #2 and click reconnect() button

What is the expected result?
1-UA presentation is reconnected-to successfully.

What happens instead?
No reconnection.  Instead the following exception is printed:

Presentation.reconnect() error, NotFoundError: No provider supports join https://googlechrome.github.io/samples/presentation-api/

It looks like the offscreen presentation lookup in presentation_service_delegate is failing, thus, the request is getting forwarded to the MR where it will fail since you can't join a tab mirroring route.


 

Comment 1 by mfo...@chromium.org, Mar 27 2017

Cc: imch...@chromium.org zhaobin@chromium.org
It is related to  crbug.com/693309 . https://googlechrome.github.io/samples/presentation-api/receiver/index.html does not access navigator.presentation.receiver, so we do not create PresentationReceiver object for it. reconnect() does not work.

Comment 3 by mfo...@chromium.org, Mar 27 2017

Mergedinto: 693309
Status: Duplicate (was: Untriaged)
Ah, so the offscreen presentation registration is done only if the PresentationReceiver is created?  Closing as a dup.

Yes...receiver's PresentationDispatcher needs to call ConnectToPresentationServiceIfNeeded() to register itself with OPM. For receiver frame, it is called in PresentationDispatcher::setReceiver() (when we create PresentationReceiver object)

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

Okay, I was going to add messaging to the sample anyway, which will trigger a reference to navigator.presentation.receiver.  The underlying bug will still be there though.

Sign in to add a comment