Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > Camera class | |||
The Camera class lets you capture video from a video camera attached to the computer that is running Macromedia Flash Player. When used with Flash Media Server, this class lets you transmit, display, and optionally record the video being captured. With these capabilities, you can develop media applications such as video conferencing, instant messaging with video, and so on. Flash provides similar audio capabilities; for more information, see the Microphone class entry.
You can also use a Camera object without a server--for example, to monitor a video feed from a webcam attached to your local system.
|
NOTE |
|
When a SWF file tries to access the camera returned by |
To create or reference a Camera object, use the Camera.get() method.
|
Method |
Description |
|---|---|
|
Returns a reference to a Camera object for capturing video. |
|
|
Specifies which video frames are transmitted in full instead of being interpolated by the video compression algorithm. |
|
|
Specifies whether to use a compressed video stream for a local view of what the camera is transmitting. |
|
|
Sets aspects of the camera capture mode, including height, width, and frames per second. |
|
|
Specifies how much motion is required to invoke |
|
|
Sets the maximum amount of bandwidth per second or the required picture quality of the current outgoing video feed. |
|
Property (read-only) |
Description |
|---|---|
|
A numeric value from 0 to 100 that specifies the amount of motion the camera is detecting. |
|
|
The maximum amount of bandwidth the current outgoing video feed can use, in bytes. |
|
|
The rate at which the camera is capturing data, in frames per second. |
|
|
The rate at which you would like the camera to capture data, in frames per second. |
|
|
The current capture height, in pixels. |
|
|
The index of the camera, as reflected in the array returned by Camera.names. |
|
|
A number that specifies which video frames are transmitted in full instead of being interpolated by the video compression algorithm. |
|
|
A Boolean value that specifies whether a local view of what the camera is capturing is compressed or uncompressed. |
|
|
A numeric value from 0 to 100 that specifies the amount of motion required to invoke |
|
|
The number of milliseconds between the time the camera stops detecting motion and the time |
|
|
A Boolean value that specifies whether the user has allowed or denied access to the camera. |
|
|
The name of the camera as specified by the camera hardware. |
|
|
Class property; an array of strings containing the names of all available video capture devices, including video capture cards and cameras. |
|
|
A number that specifies the current level of picture quality based on the amount of compression being applied to each video frame. |
|
|
The current capture width, in pixels. |
|
Method |
Description |
|---|---|
|
Invoked when the camera starts or stops detecting motion. |
|
|
Invoked when the user allows or denies access to the camera. |
See Camera.get().
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000526.html
Comments
No screen name said on Mar 21, 2007 at 3:13 AM :