donaldp24 / CanvasCameraPlugin

Phonegap CanvasCameraPlugin
107 stars 119 forks source link

can't find variable: Canvascamera #22

Open nicksmetBagaar opened 9 years ago

nicksmetBagaar commented 9 years ago

I tried implementing you plugin in to my ionic project but i've been stuck for hours now. When I do this

document.addEventListener("deviceready",function(){
  // have to call initialize function with canvas object
  var objCanvas = document.getElementById('testcanvas');
  window.plugin.CanvasCamera.initialize(objCanvas);

  $timeout(function(){
    var options = {
    quality: 75,
    width: 640,
    height: 480
  };
  window.plugin.CanvasCamera.start(options);
},5000);

HTML

  <canvas id="testcanvas" width="352" height="288" style="border:2px"></canvas>

I'm getting ReferenceError: Can't find variable: CanvasCamera, http://192.168.1.179:8101/#/app/test, Line: 1. I installed the plugin like it was described

Anybody encountered this before ?