Closed Bug 1153059 Opened 10 years ago Closed 10 years ago

[2.2] 3rd-app camera unable to use.

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1129315

People

(Reporter: liweijia, Unassigned)

Details

We developing a camere, use the navigator.mozCameras API, But the error raised: JavaScript Error: "TypeError: navigator.mozCameras is undefined What Should I do? Why this happen? and Is it related to Permission issue? I add camera:{} in the manifest BTW
In addition to adding the "camera" permission, you need to make sure your app type is either "certified" or "privileged": https://github.com/mozilla-b2g/gaia/blob/master/apps/camera/manifest.webapp#L4
(In reply to Mike Habicher [:mikeh] from comment #1) > In addition to adding the "camera" permission, you need to make sure your > app type is either "certified" or "privileged": > https://github.com/mozilla-b2g/gaia/blob/master/apps/camera/manifest. > webapp#L4 Yes, I forget to say. The type is privileged. I change the code here https://mxr.mozilla.org/mozilla-central/source/dom/base/Navigator.cpp#2288 I change the code to return true directly. Then the camera start up. And ideas here? And How Can I add some adb log here? Thanks
You're failing the permission check for some reason. Please share you manifest.webapp and we'll taking a look.
*If you can, please share your manifest.webapp and we'll take a look.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.