Re: [Bug 25245] Specify "access" in the context of getMediaDevices

On 4/10/14 9:32 AM, Harald Alvestrand wrote:
> The use cases for exposing the number and ID of devices I remember are:
>
> - When no devices of a class are available, the app can choose not to 
> display relevant UI components at all (don't put up a self-view if you 
> have no camera).
> - When one device is available, device-choice functions in the UI can 
> be hidden.
> - When multiple devices are available, exposing the ID enables the app 
> to distinguish clearly between the "I have seen this device before" 
> use case and the "All devices are new to me" use case.

I don't think you need this to store devices you've seen before.

But on the others, it seems to me this would work really well in 
unconstrained cases, not so well in constrained ones.

It does NOT solve:
- don't put up a self-view if you don't meet minimum camera requirements.
- hide device-choice functions in the UI if only one camera meets 
requirements.

.: Jan-Ivar :.

Received on Friday, 11 April 2014 02:15:45 UTC