forked from sshilko/jQuery-AS3-Webcam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
29 lines (26 loc) · 1.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* jQuery AS3 Webcam
*
* Copyright (c) 2012, Sergey Shilko ([email protected])
*
* @author Sergey Shilko
* @version 1.1
* @see https://github.com/sshilko/jQuery-AS3-Webcam
*
**/
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.
/* SWF 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
* */
/* 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
* */