Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I get a live camera image inside my App in Firefox OS?

26 views
Skip to first unread message

freder...@gmail.com

unread,
Apr 20, 2013, 1:20:27 PM4/20/13
to
So I am having a look into Firefox OS right now. One thing I would like to try is to manipulate the device camera's live feed using canvas et.al.

From what I can see in the blog posts (like this one) and the code in the boilerplate app this is always done using a MozActivity, meaning that the user is leaving the application, takes a picture and passes this picture back to the application, where I could post-process it.

But for live manipulation I would need to have a live camera feed inside my App, just like you would do using getUserMedia when accessing a computer's webcam. getUserMedia doesn't seem to be supported in the Firefox OS simulator though.

Is this disallowed due to security reasons?

Is there any workaround to this or some API that I am missing?

Mounir Lamouri

unread,
Apr 20, 2013, 3:37:29 PM4/20/13
to dev-w...@lists.mozilla.org
As far as I know, you can't do that with the current version of Firefox
OS but this is definitely something that will be exposed via an API in
the next versions.

Cheers,
--
Mounir

Harald Kirschner

unread,
Apr 20, 2013, 3:39:20 PM4/20/13
to dev-w...@lists.mozilla.org
Hi Frederik,

WebRTC will (hopefully) land in Firefox OS 1.2 (as reference, the initial launch is on 1.0.1, closely followed but dependent on carriers is 1.1). WebRTC is a of lot of low-level hardware dependencies, so it might take longer.

You can follow along on this meta bug and its dependencies: https://bugzilla.mozilla.org/show_bug.cgi?id=750011

---
Harald Kirschner | Partner Engineer & Web Craftsman | har...@mozilla.com (mailto:hkirs...@mozilla.com)


On Saturday, April 20, 2013 at 12:37 PM, Mounir Lamouri wrote:
> As far as I know, you can't do that with the current version of Firefox
> OS but this is definitely something that will be exposed via an API in
> the next versions.
>
> Cheers,
> --
> Mounir
> _______________________________________________
> dev-webapps mailing list
> dev-w...@lists.mozilla.org (mailto:dev-w...@lists.mozilla.org)
> https://lists.mozilla.org/listinfo/dev-webapps
>
>


Frederik Ring

unread,
Apr 22, 2013, 12:09:56 PM4/22/13
to
Harald, thanks for the answer! Definitely looking forward to 1.2 now!
0 new messages