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

[remote-playback] setupRemotePlayback() called twice in Example 2 and Example 3?

From: Mark Foltz via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 May 2016 19:02:30 +0000
To: public-secondscreen@w3.org
Message-ID: <issues.opened-156029940-1463770949-sysbot+gh@w3.org>
mfoltzgoogle has just created a new issue for 
https://github.com/w3c/remote-playback:

== setupRemotePlayback() called twice in Example 2 and Example 3? ==
It looks like `setupRemotePlayback()` is called twice when the user 
clicks remotePlaybackBtn, once in the resolver for `connect()` and 
again in the `onstatechange` event handler when the state transitions 
to `connecting`.

Also, you may want to disable remotePlaybackBtn when the state changes
 to `connecting`, and re-enable it on a transition to `disconnected`.
  Maybe this would be done in the setup/stop helper functions?



Please view or discuss this issue at 
https://github.com/w3c/remote-playback/issues/40 using your GitHub 
account
Received on Friday, 20 May 2016 19:02:31 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 May 2016 19:02:32 UTC