# Live webcam!

**URL:** <https://forum.kirupa.com/t/live-webcam/165037>\
**Category:** Uncategorized\
**Created:** [October 7, 2005, 12:38am UTC](https://forum.kirupa.com/t/live-webcam/165037 "2005-10-07T00:38:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPP](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@GPP](https://forum.kirupa.com/u/GPP)\
**Post date:** [October 7, 2005, 12:38am UTC](https://forum.kirupa.com/t/live-webcam/165037/1 "2005-10-07T00:38:28Z")

</div>

**Camera class**

**Availability**

Flash Player 6.

**Description**

The Camera class is primarily for use with Macromedia Flash Communication Server, but can be used in a limited way without the server.

The Camera class lets you capture video from a video camera attached to the computer that is running Macromedia Flash Player–for example, to monitor a video feed from a web camera attached to your local system. (Flash provides similar audio capabilities; for more information, see the [[color=#0000ff]Microphone class[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001456.html#3996538) entry.)

\*\*Warning: \*\*When a SWF file tries to access the camera returned by [[color=#0000ff]Camera.get()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001253.html#3990961), Flash Player displays a Privacy dialog box that lets the user choose whether to allow or deny access to the camera. (Make sure your Stage size is at least 215 x 138 pixels for the Camera class examples; this is the minimum size Flash requires to display the dialog box.)

To create or reference a Camera object, use [[color=#0000ff]Camera.get()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001253.html#3990961).

**Method summary for the Camera class**

Method Description [[color=#0000ff]Camera.get()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001253.html#3990961)Returns a default or specified Camera object, or null if the camera is not available.

[[color=#0000ff]Camera.setMode()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001264.html#3991344)Sets aspects of the camera capture mode, including height, width, and frames per second.

[[color=#0000ff]Camera.setMotionLevel()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001265.html#3991400)Specifies how much motion is required to invoke Camera.onActivity(true) and how much time should elapse without motion before Camera.onActivity(false) is invoked.

[[color=#0000ff]Camera.setQuality()[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001266.html#3991466)Specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second.

**Property summary for the Camera class**

Property (read-only) Description [[color=#0000ff]Camera.activityLevel[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001249.html#3990849)The amount of motion the camera is detecting.

[[color=#0000ff]Camera.bandwidth[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001250.html#3990879)The maximum amount of bandwidth the current outgoing video feed can use, in bytes.

[[color=#0000ff]Camera.currentFps[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001251.html#3990904)The rate at which the camera is capturing data, in frames per second.

[[color=#0000ff]Camera.fps[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001252.html#3990929)The rate at which you would like the camera to capture data, in frames per second.

[[color=#0000ff]Camera.height[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001254.html#3991034)The current capture height, in pixels.

[[color=#0000ff]Camera.index[/color]The index of the camera, as reflected in the array returned by [url=“http://livedocs.macromedia.com/flash/mx2004/main\_7\_2/00001260.html#3991197”][color=#0000ff]Camera.names[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001255.html#3991063).

[[color=#0000ff]Camera.motionLevel[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001256.html#3991086)The amount of motion required to invoke Camera.onActivity(true).

[[color=#0000ff]Camera.motionTimeOut[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001257.html#3991115)The number of milliseconds between the time when the camera stops detecting motion and the time Camera.onActivity(false) is invoked.

[[color=#0000ff]Camera.muted[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001258.html#3991149)A Boolean value that specifies whether the user has allowed or denied access to the camera.

[[color=#0000ff]Camera.name[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001259.html#3991174)The name of the camera as specified by the camera hardware.

[[color=#0000ff]Camera.names[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001260.html#3991197)Class property in an array of strings reflecting the names of all available video capture devices, including video cards and cameras.

[[color=#0000ff]Camera.quality[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001263.html#3991328)An integer specifying the required level of picture quality, as determined by the amount of compression being applied to each video frame.

[[color=#0000ff]Camera.width[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001267.html#3991507)The current capture width, in pixels.

**Event handler summary for the Camera class**

Event handler Description [[color=#0000ff]Camera.onActivity[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001261.html#3991234)Invoked when the camera starts or stops detecting motion.

[[color=#0000ff]Camera.onStatus[/color]](http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001262.html#3991273)Invoked when the user allows or denies access to the camera.

I saw a thread on this thread along time ago…somone was asking… so here you go
