Library to use the camera as a panel in Fuse.
Currently supports iOS
Issues, feature request and pull request are welcomed.
Using fusepm
$ fusepm install https://github.com/bolav/fuse-camerapanel
<CameraStream>
<CameraVisual Facing="Front" />
</CameraStream>
<JavaScript>
var cameraExt = require('CameraExtended');
function shoot () {
cameraExt
.takePicture()
.then(function (file) {
debug_log("Filename: " + file.name);
debug_log("Path: " + file.path);
cameraExt.refreshCamera();
})
.catch(function (e) {
debug_log(e);
});
}
module.exports.shoot = shoot;
</JavaScript>
<CameraStream>
<CameraVisual Camera="cam" Facing="Front"/>
<Camera ux:Global="cam" />
<CameraExtended ux:Global="CameraExtended" Camera="cam" />
</CameraStream>