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

Re: [remote-playback] Do we need remote.getAvailability()?

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 May 2016 13:58:55 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-221278853-1464098333-sysbot+gh@w3.org>
As @avayvod pointed, we can't really have a simple attribute+event 
unless we add an `unknown` state but still, in that case, we would 
need the developer to be able to request availability check so we 
might need to add `startDiscovery` (and `stopDiscovery` ?) for 
websites that want to show a remote playback button.

Actually, a pattern that start emerging on the platform is to have an 
`observe()` method, as used in [Intersection 
Observer](https://wicg.github.io/IntersectionObserver/) and [IndexedDB
 It would make the API surface simpler. We could add `unobserve()` if 
we believe it's needed. The `availabilitychange` event would only be 
fired if `observe()` was called.

GitHub Notification of comment by mounirlamouri
Please view or discuss this issue at 
 using your GitHub account
Received on Tuesday, 24 May 2016 13:58:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 24 May 2016 13:58:59 UTC