- From: Anton Vayvod via GitHub <sysbot+gh@w3.org>
- Date: Mon, 06 Jun 2016 13:41:55 +0000
- To: public-secondscreen@w3.org
avayvod has just created a new issue for
https://github.com/w3c/remote-playback:
== 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:
```javascript
videoElem.remote.connect().then(switchToRemoteUI);
```
vs.
```javascript
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
account
Received on Monday, 6 June 2016 13:41:56 UTC