W3C home > Mailing lists > Public > public-secondscreen@w3.org > April 2015

Re: [presentation-api] Rethinking availability monitoring

From: Oleg Beletski via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Apr 2015 07:25:09 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-96957202-1430205908-sysbot+gh@w3.org>
```AvailabilityListener``` definitely can get the job done for both 
modes. One issue still has to be sorted out. I understood from 
@avayvod post [1] about  ```AvailabilityListener``` that discovery 
process is running even if ```onavailablechanged``` callback is not 
set and ```available``` attribute can still change in runtime 
depending on the availability of the external screens. That means that
 monitoring has to be explicitly stopped to make  mode 1 example 
complete.  Would it make scene to add ```cancel``` method to the  
```AvailabilityListener```? Any better ideas?
listenForAvailability.then(function(listener) {
  if (listener.available) {
  /* Stop the listener here */


GitHub Notif of comment by obeletski
Received on Tuesday, 28 April 2015 07:25:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:18:52 UTC