Re: [tvcontrol-api] Management of underlying resources

In general, I prefer the model where getTuners() returns all tuners, 
regardless of whether they are currently available, and the resource 
is locked when the app starts using it (more on this below).  

I also agree that an app should not be able to see what another app is
 using a tuner for, and so TVTuner.currentSource and TVTuner.stream() 
should both return null until TVTuner.setCurrentSource() and 
TVSource.setCurrentChannel() are called respectively.  I would argue 
that TVSource.setCurrentChannel() is probably the call that locks the 
resources - this would not require changes to the API.

The question then becomes what happens when a resource is in use and 
another request tries to claim it (whether from the same app or a 
different app).  Should the request fail, or should it pre-empt the 
resources?  There are valid arguments for both cases.

Steve.


-- 
GitHub Notification of comment by stevem-tw
Please view or discuss this issue at 
https://github.com/w3c/tvcontrol-api/issues/3#issuecomment-242660171 
using your GitHub account

Received on Friday, 26 August 2016 08:04:57 UTC