Skip to content

isrightkev/fuse-camerapanel

 
 

Repository files navigation

Fuse CameraPanel

Library to use the camera as a panel in Fuse.

Currently supports iOS

Issues, feature request and pull request are welcomed.

Installation

Using fusepm

$ fusepm install https://github.com/bolav/fuse-camerapanel

Usage:

UX

<CameraStream>
  <CameraVisual Facing="Front" />
</CameraStream>

JS/UX Approach

<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>

About

CameraPanel for FuseTools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Uno 66.6%
  • Objective-C++ 17.8%
  • Java 14.1%
  • Objective-C 1.5%