presentationConnection.send(message) messages aren't displayed onscreen. |
||||
Issue descriptionChrome Version: 68.0.3409.2 OS: Win 8, Mac MR: 6818.430.0.0 Doesn't repro with 67.0.3396.30 What steps will reproduce the problem? (1) Go to https://googlechrome.github.io/samples/presentation-api/ (2) Click on the presentationRequest.start() button and select a device to start Casting. (3) press the presentationConnection.send(message) after selecting an item from the drop down list. What is the expected result? A fruit icon or some message displayed on the receiver screen. What happens instead? Nothing is displayed on the receiver.
,
May 4 2018
I was able to repro this on a ToT build. I added logging to PresentationConnection in Blink and verified that messages are being sent from the controller and received by the presentation page. However, I can't inspect the presentation page through devtools to see if the message event is being received by script (they used to be listed under "Other"). Without devtools it will be trickier to debug further. We could also try to debug the receiver page with a wired display, which I don't have here in Seattle. Going to file a separate issue on devtools.
,
May 4 2018
Looking at https://github.com/GoogleChrome/samples/blob/gh-pages/presentation-api/receiver/index.html, shouldn't the <script> tag to load receiver.js be at the bottom since it references message-list? If logging says Blink PresentationConnection is working properly then likely the page is the issue. But hard to tell definitively without devtools support.
,
May 5 2018
Good catch. The receiver could get a presentation connection before the DOM is ready. The call to navigator.presentation.receiver could go into a DOMContentLoaded event listener.
,
May 7 2018
,
May 7 2018
And it was just merged :-) David, feel free to verify. Might need to empty cache to make sure you get the latest version of the sample app.
,
May 9 2018
Yep, fixed. |
||||
►
Sign in to add a comment |
||||
Comment 1 by taku...@chromium.org
, May 3 2018