I think we need to use both because there are some developers who use the
same code base for other platforms. If we remove it, it could create
problems for those people.

Prateek Jadhwani
www.prateekjadhwani.com
On Apr 17, 2014 7:09 AM, "Paul Theriault" <[email protected]> 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

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to