webcam

WebJar for webcam

Лицензия

Лицензия

MIT
Категории

Категории

JOnAS Контейнер Application Servers Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-jonashartmann-webcam-directive
Последняя версия

Последняя версия

3.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

webcam
WebJar for webcam
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать github-com-jonashartmann-webcam-directive

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angular jar [1.4.0,1.5)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
3.1.1