Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find variable: Canvascamera #22

Open
nicksmetBagaar opened this issue Sep 1, 2015 · 0 comments
Open

can't find variable: Canvascamera #22

nicksmetBagaar opened this issue Sep 1, 2015 · 0 comments

Comments

@nicksmetBagaar
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant