W3C home > Mailing lists > Public > public-secondscreen@w3.org > June 2016

[remote-playback] Change connect() to return Promise<void>

From: Anton Vayvod via GitHub <sysbot+gh@w3.org>
Date: Mon, 06 Jun 2016 13:41:55 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-158680770-1465220514-sysbot+gh@w3.org>
avayvod has just created a new issue for 

== Change connect() to return Promise<void> ==
... and reject when user cancels the selection.
Having to wait for the Promise to be resolved and then to check if its
 value is true seems to make the examples less straightforward:



videoElem.remote.connect().then(function(success) {  if (success) 
switchToRemoteUI(); });

Please view or discuss this issue at 
https://github.com/w3c/remote-playback/issues/45 using your GitHub 
Received on Monday, 6 June 2016 13:41:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 6 June 2016 13:41:57 UTC