Camera class
9
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.
To create or reference a Camera object, use the
Camera.get()
method.
Method summary for the Camera class
NO
T
E
When a SWF file tries to access the camera returned by
Camera.get()
, 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.) End
users and administrative users may also disable camera access on a per-site or global
basis.
Method
Description
Camera.get()
Returns a reference to a Camera object for capturing
video.
Camera.setKeyFrameInterval()
Specifies which video frames are transmitted in full
instead of being interpolated by the video compression
algorithm.
Camera.setLoopback()
Specifies whether to use a compressed video stream for a
local view of what the camera is transmitting.
Camera.setMode()
Sets aspects of the camera capture mode, including
height, width, and frames per second.
Camera.setMotionLevel()
Specifies how much motion is required to invoke
Camera.onActivity(true)
.
Camera.setQuality()
Sets the maximum amount of bandwidth per second or
the required picture quality of the current outgoing video
feed.
Содержание FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER...
Страница 1: ...Client Side ActionScript Language Reference for Flash Media Server 2...
Страница 4: ...4 Contents...
Страница 148: ...148 Client Side ActionScript Language Reference...