Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thibauts/flash-camera
A lightweight Javascript Flash Camera component
https://github.com/thibauts/flash-camera
Last synced: 21 days ago
JSON representation
A lightweight Javascript Flash Camera component
- Host: GitHub
- URL: https://github.com/thibauts/flash-camera
- Owner: thibauts
- Created: 2014-06-07T13:42:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-07T14:06:28.000Z (over 10 years ago)
- Last Synced: 2024-10-16T07:21:28.896Z (2 months ago)
- Language: ActionScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
flash-camera
============
### A lightweight Javascript Flash Camera componentThis is a very lightweight (under 2KB) SWF webcam component that can be used as a fallback where WebRTC is not available.
The component is entirely Javascript-driven, and is in fact a thin wrapper around the flash Camera component. It supports webcam stream publishing through both RTMP and RTMFP (p2p, as in WebRTC).
Usage
-----`example.html` should get you started. The example uses RTMFP so you will need a Stratus key which can easily be obtained here [http://labs.adobe.com/technologies/cirrus/](http://labs.adobe.com/technologies/cirrus/). When the page is loaded open your browser console to get a peek at the internals. Once your webcam is published you will find a peerID in the console that can be used in the flash-stream component.
The API being very close to the original Flash API, when in doubt look as the Actionscript source and refer to the corresponding documentation.
Building
--------You can rebuild a modified `FlashCamera.as` with the included Makefile. You will need to have the Flex SDK installed and `mxmlc` in your PATH. Then simply run
```bash
$ make
```