webcam

WebJar for webcam

License

License

MIT
Categories

Categories

JOnAS Container Application Servers Github Development Tools Version Controls
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-jonashartmann-webcam-directive
Last Version

Last Version

3.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

webcam
WebJar for webcam
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jonashartmann/webcam-directive

Download github-com-jonashartmann-webcam-directive

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-jonashartmann-webcam-directive/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-jonashartmann-webcam-directive</artifactId>
    <version>3.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-jonashartmann-webcam-directive/
implementation 'org.webjars.bower:github-com-jonashartmann-webcam-directive:3.1.1'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-jonashartmann-webcam-directive/
implementation ("org.webjars.bower:github-com-jonashartmann-webcam-directive:3.1.1")
'org.webjars.bower:github-com-jonashartmann-webcam-directive:jar:3.1.1'
<dependency org="org.webjars.bower" name="github-com-jonashartmann-webcam-directive" rev="3.1.1">
  <artifact name="github-com-jonashartmann-webcam-directive" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-jonashartmann-webcam-directive', version='3.1.1')
)
libraryDependencies += "org.webjars.bower" % "github-com-jonashartmann-webcam-directive" % "3.1.1"
[org.webjars.bower/github-com-jonashartmann-webcam-directive "3.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.4.0,1.5)

Project Modules

There are no modules declared in this project.

Webcam manipulation with HTML5

An AngularJS directive to manipulate the webcam.

Build Status

You can easily add it as a module to your own app.

A complete example can be found at http://jonashartmann.github.io/webcam-directive (gh-pages)

Download

NPM

Using NPM

npm install webcam

Using Bower

bower install webcam-directive

There is a tag for each version, with the built javascript file inside the dist directory

Ex.: dist/webcam.min.js

Installation

Using script tag

<script type="text/javascript" src="webcam.min.js"></script>

Usage

Add module "webcam" as dependency

angular.module('myapp', ['webcam']);

Then add the new element in HTML

<webcam></webcam>

Advanced Usage

Set a custom placeholder image to be shown while loading the stream

<webcam placeholder="'img/ajax-loader.gif'">

Callbacks

function MyController($scope) {
  $scope.onError = function (err) {...};
  $scope.onStream = function (stream) {...};
  $scope.onSuccess = function () {...};
}
<webcam
  on-stream="onStream(stream)"
  on-streaming="onSuccess()"
  on-error="onError(err)">
</webcam>

Set a channel to bind data

function MyController($scope) {
  $scope.myChannel = {
    // the fields below are all optional
    videoHeight: 800,
    videoWidth: 600,
    video: null // Will reference the video element on success
  };
}
<webcam
  channel="myChannel">
</webcam>

see more examples wiki

Contribute

  1. Fork and clone this repository

  2. Install dependencies

    npm install

  3. Build/test with grunt

    grunt test

  4. Make a Pull Request (it will only be merged if it passes the Travis build)

Or just help by creating issues.

Technologies used in this project

The code is licensed under the MIT License. @see LICENSE file

Versions

Version
3.1.1