Giter VIP home page Giter VIP logo

ng-webcam's Introduction

ng-webcam

Dependency Status devDependency Status

Build Status covarage

ngWebcam is an AngularJS directive for capturing images from your computer's camera, and delivering then to you as JPEG or PNG Data URIs. The images can then be displayed in your web page, render into a canvas or submited to your server. ngWebcam uses WebcamJS to provide the core functionality.

Browser suport

ngWebcam suports the same browsers supported by WebcamJS.

Live exemple

To see live exemple, go to the sample page

Instalation

Using Bower

bower install ng-webcam

Usage

Import files scripts

ngWebcam uses WebcamJS to work properly so you need to add the script in your main file, don't forget to load the directive file:

<script src"/path/to/webcam.js"></script>
<script src"/path/to/ng-webcam.js"></script>

Add the module as dependency

Simply add the module as dependency to your main application module likes this:

angular.module("app", ["ng-webcam"]);

The directive

<ng-webcam 
    config="vm.config"
    on-error="vm.onError(err)"
    on-load="vm.onLoad()"
    on-live="vm.onLive()"
    on-capture-progress="vm.onCaptureProgress(src, progress)"
    on-capture-complete="vm.onCaptureComplete(src)">
</ng-webcam>

Options

ng-webcam comes with lots of options to simplify tour development:

Callbacks

  • on-error function Callback function for error. Fires when the WebcamJS library erro occurs (your callback function is passed an error string)
  • on-capture-complete function Callback function for capture complete action. Fires when the capture completes (your callback function is passed an array string (data_uri) in src parameter)
  • on-load function Callback function for load action camera. Fires when the WebcamJS library finisheds loading
  • on-live function Callback function for live action camera. Fires when the user's camera goes live - this will only happen after the user allows access to their camera
  • on-capture-progress function Callback function for each capturing image with progress. Fires repeatedly while an capturing progress (your callback function is passed an string (data_uri) in src parameter and an number (progress) in progress parameter)

Config

  • config object Config options for init params in WebcamJS e directive | optional
    • viewerWidth number Width of live camera viewer in pixels| default to actual size of the DOM element auto
    • viewerHeight number Height of live camera viewer in pixels| default to actual size of the DOM element auto
    • outputWidth number Width of captured snapshot image in pixels | default 320
    • outputHeight number Height of captured snapshot image in pixels | default 240
    • delay number Number of seconds to wait and display before getting snapshot | default 0
    • shots number Number of shots captured images | default 1
    • shutterUrl string Shutter sound's url to play when taking snapshot | optional
    • flahFallbackUrl string Url of the Adobe Flash player to enable the fallback and crossbrowser modes, default based on navigator.getUserMedia
    • countdown number Number of seconds to wait and display camera frame | optional

Dispatches events

  • ngWebcam_capture event Notifies when it should be carried out to capture the camera
  • ngWebcam_on event Notifies when the camera must be on
  • ngWebcam_off event Notifies when the camera should be turned off

Working example

A working example is available in gh-pages branch. Make sure to install bower and node dependencies, after checkout branch.

npm install && bower install

Then start the node server, it will ne accessible on http://0.0.0.0:3000

node server.js

License

The MIT License (MIT)

Copyright (c) 2015 Weber Amaral

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARR

ng-webcam's People

Contributors

weberamaral avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ng-webcam's Issues

Uncaught Error: [$injector:modulerr] Failed to instantiate module App due to: Error: [$injector:modulerr] Failed to instantiate module ngWebcam due to:

I always get this error. I already included ng-webcam into my index.html, checked the spelling and paths multiple times and it's ok. Still getting this error. Can you help me with this one?

Here's the complete error message.

Uncaught Error: [$injector:modulerr] Failed to instantiate module airtimeApp due to: Error: [$injector:modulerr] Failed to instantiate module ngWebcam due to: Error: [$injector:nomod] Module 'ngWebcam' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.4.14/$injector/nomod?p0=ngWebcam at http://distributor.airtime.com/bower_components/angular/angular.js:68:12 at http://distributor.airtime.com/bower_components/angular/angular.js:2022:17 at ensure (http://distributor.airtime.com/bower_components/angular/angular.js:1946:38) at module (http://distributor.airtime.com/bower_components/angular/angular.js:2020:14) at http://distributor.airtime.com/bower_components/angular/angular.js:4482:22 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at http://distributor.airtime.com/bower_components/angular/angular.js:4483:40 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=ngWebcam&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'ngWebcam'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DngWebcam%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5) at http://distributor.airtime.com/bower_components/angular/angular.js:68:12 at http://distributor.airtime.com/bower_components/angular/angular.js:4505:15 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at http://distributor.airtime.com/bower_components/angular/angular.js:4483:40 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at createInjector (http://distributor.airtime.com/bower_components/angular/angular.js:4391:11) at doBootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1693:20) at bootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1714:12) http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=airtimeApp&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20ngWebcam%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'ngWebcam'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DngWebcam%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fmodulerr%3Fp0%3DngWebcam%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'ngWebcam'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.4.14%252F%2524injector%252Fnomod%253Fp0%253DngWebcam%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A68%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A2022%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A1946%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A2020%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4482%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4483%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4505%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4391%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1693%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1714%3A12) at http://distributor.airtime.com/bower_components/angular/angular.js:68:12 at http://distributor.airtime.com/bower_components/angular/angular.js:2022:17 at ensure (http://distributor.airtime.com/bower_components/angular/angular.js:1946:38) at module (http://distributor.airtime.com/bower_components/angular/angular.js:2020:14) at http://distributor.airtime.com/bower_components/angular/angular.js:4482:22 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at http://distributor.airtime.com/bower_components/angular/angular.js:4483:40 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=ngWebcam&p1=Error%3A%20%5B%24injector%3Anomod%5D%20Module%20'ngWebcam'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DngWebcam%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5) at http://distributor.airtime.com/bower_components/angular/angular.js:68:12 at http://distributor.airtime.com/bower_components/angular/angular.js:4505:15 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at http://distributor.airtime.com/bower_components/angular/angular.js:4483:40 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at createInjector (http://distributor.airtime.com/bower_components/angular/angular.js:4391:11) at doBootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1693:20) at bootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1714:12) http://errors.angularjs.org/1.4.14/$injector/modulerr?p0=airtimeApp&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20ngWebcam%20due%20to%3A%0AError%3A%20%5B%24injector%3Anomod%5D%20Module%20'ngWebcam'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fnomod%3Fp0%3DngWebcam%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2022%3A17%0A%20%20%20%20at%20ensure%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1946%3A38)%0A%20%20%20%20at%20module%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A2020%3A14)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4482%3A22%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.14%2F%24injector%2Fmodulerr%3Fp0%3DngWebcam%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520Module%2520'ngWebcam'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.4.14%252F%2524injector%252Fnomod%253Fp0%253DngWebcam%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A68%253A12%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A2022%253A17%250A%2520%2520%2520%2520at%2520ensure%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A1946%253A38)%250A%2520%2520%2520%2520at%2520module%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A2020%253A14)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4482%253A22%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4483%253A40%250A%2520%2520%2520%2520at%2520forEach%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A341%253A20)%250A%2520%2520%2520%2520at%2520loadModules%2520(http%253A%252F%252Fdistributor.airtime.com%252Fbower_components%252Fangular%252Fangular.js%253A4466%253A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A68%3A12%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4505%3A15%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4483%3A40%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A341%3A20)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4466%3A5)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A4391%3A11)%0A%20%20%20%20at%20doBootstrap%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1693%3A20)%0A%20%20%20%20at%20bootstrap%20(http%3A%2F%2Fdistributor.airtime.com%2Fbower_components%2Fangular%2Fangular.js%3A1714%3A12) at http://distributor.airtime.com/bower_components/angular/angular.js:68:12 at http://distributor.airtime.com/bower_components/angular/angular.js:4505:15 at forEach (http://distributor.airtime.com/bower_components/angular/angular.js:341:20) at loadModules (http://distributor.airtime.com/bower_components/angular/angular.js:4466:5) at createInjector (http://distributor.airtime.com/bower_components/angular/angular.js:4391:11) at doBootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1693:20) at bootstrap (http://distributor.airtime.com/bower_components/angular/angular.js:1714:12) at angularInit (http://distributor.airtime.com/bower_components/angular/angular.js:1608:5) at HTMLDocument.<anonymous> (http://distributor.airtime.com/bower_components/angular/angular.js:29847:5) at i (http://distributor.airtime.com/bower_components/jquery/dist/jquery.min.js:2:27151)

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

url-createobjecturl-no-longer-accepts-mediastream - bug after update on CHROME E AND FIREFOX

After a update on firefox that recently was applied in chrome too, the camera doest not work anymore.

Probably because of this:
https://www.fxsitecompat.com/en-CA/docs/2018/url-createobjecturl-no-longer-accepts-mediastream-as-argument/

Can someone help-me ?

On the console we have this error.

webcamController.onError : Error: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL.
attach/<@https://weberamaral.github.io/ng-webcam/vendors/webcamjs/webcam.min.js:2:3500

using the directive inside ng-repeat

Hi,
I am using the directive inside an ng-repeat but the problem I have is that when I click on capture, it does it 3 times (number of repeated elements in ng-repeat) and also uploads the file to the server three times!

Any solution?

Make capture more instant?

	vm.config = {
		delay: 0,
		shots: 1,
		countdown: 0,
		flashFallbackUrl: 'vendors/webcamjs/webcam.swf',
		flashNotDetectedText: 'You\'re using an unsupported browser!'
	};

When clicking the capture button it still takes about 3 seconds for the image to appear on screen. How can we make the click and capture instant?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.