On Thursday, April 17, 2014 1:07:29 PM UTC+2, Paul Theriault wrote:
> We now have two camera APIs exposed to third-party apps in b2g - 
> navigator.mozCamera and navigator.getUserMedia (which use the 'camera' and 
> 'video-capture' permissions, respectively). Previously camera was certified 
> only, and getUserMedia was prompt upon each use (i.e. no remembered choice, 
> and not shown in settings app). This is changing though - mozCamera is 
> already available to privileged apps (bug 982777), and bug 938467 is to 
> introduce a way to remember prompts in getUserMedia.
> 
> 
> 
> Both APIs have a similar prompt, and would likely have a similar name in the 
> settings app, possibly leading to confusion for the user. So I think we 
> should aim to have a single camera prompt and single camera permission in the 
> settings app. But I am not what the long term plan is for mozCamera, or what 
> the best approach to achieve this unified UI.
> 
> 
> 
> Do we plan to expose mozCamera to regular web apps and web content, and 
> perhaps could we therefore eventually just use the same permission)?  Or do 
> we need want to remain having separate permissions, and unify the prompt and 
> the permission in the settings app somehow?
> 
> 
> 
> Or something else? Thoughts? 
> 
> 
> 
> -Paul

I figured originally that we would use getUserMedia to get any image (viewport 
etc), and that mozCamera will be used to control stuff that is not yet in 
getUserMedia, like controlling the flash light.

So, move everything that is in getUserMedia out of the mozCamera API, and make 
them work together for the foreseeable future.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to