Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sshilko/jQuery-AS3-Webcam
jQuery wrapper for capturing web camera images written with ActionScript 3
https://github.com/sshilko/jQuery-AS3-Webcam
Last synced: about 2 months ago
JSON representation
jQuery wrapper for capturing web camera images written with ActionScript 3
- Host: GitHub
- URL: https://github.com/sshilko/jQuery-AS3-Webcam
- Owner: sshilko
- License: mit
- Created: 2012-01-08T12:23:07.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T08:56:59.000Z (over 6 years ago)
- Last Synced: 2024-08-03T05:01:57.470Z (5 months ago)
- Language: ActionScript
- Homepage:
- Size: 162 KB
- Stars: 25
- Watchers: 6
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actionscript-sorted - jQuery-AS3-Webcam - jQuery wrapper for capturing web camera images written with ActionScript 3 (Multimedia / Camera)
README
```
/**
* jQuery AS3 Webcam
* Copyright (c) 2012, Sergey Shilko ([email protected])
* The MIT License (MIT)
*
* @author Sergey Shilko
* @see https://github.com/sshilko/jQuery-AS3-Webcam
* @see http://sshilko.github.io/examples/example.html
*/
```## Demo
http://sshilko.github.io/examples/example.html## Overview
* jQuery AS3 Webcam, you will be able to make JPEG captures of web camera, all interactions are made thru javascript.
* Javascript callback will receive base64 encoded JPEG image from webcamera.
* Support different webcam resolutions (320x240, 640x480, any).
* Adaptive stage scaling, align optionsSWF external interface:
```
webcam.save() - get base64 encoded JPEG image
webcam.getCameraList() - get list of available cams
webcam.setCamera(i) - set camera, camera index retrieved with getCameraList
webcam.getResolution() - retrieve actual web camera resolution (set width may not equal result width etc)
```External triggers on events:
```
webcam.isClientReady() - you respond to SWF with true (by default) meaning javascript is ready to accept callbacks
webcam.cameraConnected() - camera connected callback from SWF
webcam.noCameraFound() - SWF response that it cannot find any suitable camera
webcam.cameraEnabled() - SWF response when camera tracking is enabled (this is called multiple times, use isCameraEnabled flag)
webcam.cameraDisabled()- SWF response, user denied usage of camera
webcam.swfApiFail() - Javascript failed to make call to SWF
webcam.debug() - debug callback used from SWF and can be used from javascript side too
```
and more...## Why another library?
* Because i could not find an Action Script 3 library for capturing images, there simply was non available.
* Action Script 2 library (i.e. http://www.xarg.org/project/jquery-webcam-plugin/) are slow# Updates
* 2015-10
* Now with [zeptojs](http://zeptojs.com) instead of jquery (faster)
* Now with small xss-check for callTarget, can also use 'allowScriptAccess=sameDomain' in some cases
* Build script tested on MacOSX, recompiled (mxmlc flex 3.6, Latest FF42 & Flash19 works fine)