Hi Jan,
>From your code implementation, it could have problem in getCamera().
navigator.mozCameras.getCamera({ camera: 'back' }, function(c) {
window.c = c;
}, function(err) { console.error(err); })
Once it got camera, the app will still wait until onPreviewStateChange is
called to enable capture button.
https://github.com/mozilla-b2g/gaia/blob/v1.3t/apps/camera/js/camera.js#L530
Before that, there are something the app needs to do for taking picture. Please
see gotCamera() to know more detail.
https://github.com/mozilla-b2g/gaia/blob/v1.3t/apps/camera/js/camera.js#L1002
Best Regards,
Vincent Liu, Mozilla Taiwan
Message: 7
Date: Mon, 20 Oct 2014 14:55:12 -0700 (PDT)
From: Jan Jongboom <[email protected]>
To: [email protected]
Subject: [b2g] Tarako 1.3t just hangs on takePicture call, any clue?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
This afternoon I saw weird behavior, and I can't explain it by looking at the
code. This phone runs normal Tarako 1.3t build.
-> Taking photo from camera -> all is well, always works
-> Taking photo from another camera app (certified and stuff) via:
navigator.mozCameras.getCamera({ camera: 'back' }, function(c) {
window.c = c;
}, function(err) { console.error(err); })
This works fine ^
window.c.takePicture({
dateTime: Date.now() / 1000,
fileFormat: 'jpeg',
position: null,
rotation: 0
},
console.log.bind(console),
console.error.bind(console))
This runs indefinitely ^
No clue how that can happen. Anyone ever seen something? I can't repro on
normal camera...
------------------------------
Subject: Digest Footer
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
------------------------------
End of dev-b2g Digest, Vol 39, Issue 46
***************************************
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g