{"id":14482490,"url":"https://github.com/jonashartmann/webcam-directive","last_synced_at":"2025-04-04T08:06:06.094Z","repository":{"id":8255885,"uuid":"9704426","full_name":"jonashartmann/webcam-directive","owner":"jonashartmann","description":"Angularjs directive to access the webcam","archived":false,"fork":false,"pushed_at":"2021-03-11T11:42:21.000Z","size":6917,"stargazers_count":239,"open_issues_count":11,"forks_count":121,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-04-15T00:18:57.907Z","etag":null,"topics":["angularjs","webcam"],"latest_commit_sha":null,"homepage":"https://jonas.hartmann.site/webcam-directive","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonashartmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-26T21:13:35.000Z","updated_at":"2023-10-10T09:07:21.000Z","dependencies_parsed_at":"2022-08-07T00:00:31.848Z","dependency_job_id":null,"html_url":"https://github.com/jonashartmann/webcam-directive","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashartmann%2Fwebcam-directive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashartmann%2Fwebcam-directive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashartmann%2Fwebcam-directive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashartmann%2Fwebcam-directive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonashartmann","download_url":"https://codeload.github.com/jonashartmann/webcam-directive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142063,"owners_count":20890652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","webcam"],"created_at":"2024-09-03T00:01:10.115Z","updated_at":"2025-04-04T08:06:06.074Z","avatar_url":"https://github.com/jonashartmann.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Webcam manipulation with HTML5\n\nAn [AngularJS][] directive to manipulate the webcam.\n\n[![Build Status](https://travis-ci.org/jonashartmann/webcam-directive.png?branch=master)](https://travis-ci.org/jonashartmann/webcam-directive)\n\nYou can easily add it as a module to your own app.\n\nA complete example can be found at [http://jonashartmann.github.io/webcam-directive](http://jonashartmann.github.io/webcam-directive) (*gh-pages*)\n\n## Download\n[![NPM](https://nodei.co/npm/webcam.png?compact=true)](https://nodei.co/npm/webcam/)\n\n#### Using [NPM](http://www.npmjs.com)\n```shell\nnpm install webcam\n```\n#### Using [Bower](http://bower.io/)\n```shell\nbower install webcam-directive\n```\n\n#### There is a tag for each version, with the built javascript file inside the _dist_ directory\n\tEx.: dist/webcam.min.js\n\n## Installation\n\n#### Using script tag\n```html\n\u003cscript type=\"text/javascript\" src=\"webcam.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n#### Add module \"webcam\" as dependency\n```js\nangular.module('myapp', ['webcam']);\n```\n\n#### Then add the new element in HTML\n```html\n\u003cwebcam\u003e\u003c/webcam\u003e\n```\n\n## Advanced Usage\n#### Set a custom placeholder image to be shown while loading the stream\n```html\n\u003cwebcam placeholder=\"'img/ajax-loader.gif'\"\u003e\n```\n\n#### Callbacks\n```js\nfunction MyController($scope) {\n  $scope.onError = function (err) {...};\n  $scope.onStream = function (stream) {...};\n  $scope.onSuccess = function () {...};\n}\n```\n```html\n\u003cwebcam\n  on-stream=\"onStream(stream)\"\n  on-streaming=\"onSuccess()\"\n  on-error=\"onError(err)\"\u003e\n\u003c/webcam\u003e\n```\n#### Set a channel to bind data\n```js\nfunction MyController($scope) {\n  $scope.myChannel = {\n    // the fields below are all optional\n    videoHeight: 800,\n    videoWidth: 600,\n    video: null // Will reference the video element on success\n  };\n}\n```\n```html\n\u003cwebcam\n  channel=\"myChannel\"\u003e\n\u003c/webcam\u003e\n```\n### see more examples [wiki](https://github.com/jonashartmann/webcam-directive/wiki)\n\n\n## Contribute\n\n1. Fork and clone this repository\n2. Install dependencies\n\n    npm install\n3. Build/test with grunt\n\n    grunt test\n4. Make a Pull Request (it will only be merged if it passes the Travis build)\n\nOr just help by creating issues.\n\n## Technologies used in this project\n\n- [AngularJS][]\n- [Yeoman](http://yeoman.io/)\n- [getUserMedia](https://developer.mozilla.org/en-US/docs/WebRTC/navigator.getUserMedia)\n- [canvas](https://developer.mozilla.org/en-US/docs/HTML/Canvas)\n- [video](https://developer.mozilla.org/en-US/docs/HTML/Element/video)\n\nThe code is licensed under the MIT License. @see LICENSE file\n\n[angularjs]:http://angularjs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashartmann%2Fwebcam-directive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonashartmann%2Fwebcam-directive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashartmann%2Fwebcam-directive/lists"}