Macromedia flash media server 2-client-side actionscript language reference for flash media server 2 ユーザーズマニュアル

ページ / 156
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 
 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 
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
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 
Camera.onActivity(true)
.
Sets the maximum amount of bandwidth per second or 
the required picture quality of the current outgoing video 
feed.