Re: HTML Slidy remote - a Presentation API demo

Hi Dominik,

On 2014-07-22 15:19, Rottsches, Dominik wrote:
> Hi Francois,
>
> On 22 Jul 2014, at 13:25, Francois Daoust <fd@w3.org> wrote:
>> I created an "HTML Slidy remote" demo that uses the shim and lets one project a presentation made with HTML Slidy onto a second screen and control it from the initial screen afterwards:
>>
>>   http://tidoust.github.io/slidyremote/
>
> That’s a great demo - thank you very much! And you even took the time to write extensive documentation for the JS shim - fantastic!

Cool, glad you like it!

>
> I tried it out using the Mac build of the Presentation-enabled Chromium version and the initial page loads fine and opens a popup (not a presentation window for some reason) and then I seem to have some trouble loading the receiver side, that page stays white, even though in its Chromium developer tools I can see a session established message. If I find some time, I will try to debug this.

Ouch. I could not test the demo with the custom build of Chromium in 
practice as I do not have a Mac/Linux at hand and haven't managed to 
build Chromium on my machine yet.

I see the Chromium build in the repo is 7 months old. Could it be that 
the build uses a version of Chromium that does not yet support Promises 
(added end of last year AFAICT)?
  http://www.chromium.org/developers/calendar
  http://www.chromestatus.com/features

The main difference I can think of between this code and the code of the 
video demo otherwise is that the "window.open" call occurs in an 
asynchronous callback as opposed to as a synchronous response to user 
input (which explains why the pop-up window will be blocked by default).

The messages logged to the console on the receiver side should look like:
[[
code is running in a receiver app
dispatch "present" message
open slideshow at "https://[...]"
]]

I'll try to:
- improve the messages logged to help with debugging
- find time to setup a Linux environment
- add the required polyfills to support Promises or drop them altogether.

Can you confirm it works correctly (with a pop-up window that is) with a 
regular Google Chrome on a Mac?


> Together with Anssi’s demo for video file playback, how about merging Intel’s OTC demos and yours under
> http://webscreens.github.io/demo/ ?

That would make a lot of sense to me, yes :)
I'll get back to you once I have prepared a merged version of the demos.

Thanks,
Francois.

Received on Tuesday, 22 July 2014 15:12:04 UTC