Issue metadata
Sign in to add a comment
|
[Presentation API] Can't reconnect() to 1-UA presentation on googlechrome.github.io |
||||||||||||||||||||||||
Issue descriptionChrome 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.
,
Mar 27 2017
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.
,
Mar 27 2017
Ah, so the offscreen presentation registration is done only if the PresentationReceiver is created? Closing as a dup.
,
Mar 27 2017
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)
,
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 |
|||||||||||||||||||||||||
Comment 1 by mfo...@chromium.org
, Mar 27 2017