- From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
- Date: Tue, 24 May 2016 13:58:55 +0000
- To: public-secondscreen@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 observer](https://github.com/dmurph/indexed-db-observers/blob/gh-pages/IDBObservers.webidl). 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 https://github.com/w3c/remote-playback/issues/39#issuecomment-221278853 using your GitHub account
Received on Tuesday, 24 May 2016 13:58:59 UTC