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

ページ / 156
Camera class
29
Example
The following event handler displays a message whenever the user allows or denies access to 
the camera:
// assumes a Video object named "my_video" is on the Stage
var active_cam:Camera = Camera.get();
my_video.attachVideo(active_cam);
active_cam.onStatus = function(infoMsg) {
if(infoMsg.code == "Camera.Muted"){
trace("User denies access to the camera");
}
else
trace("User allows access to the camera");
}
// Change the Allow or Deny value to invoke the function.
System.showSettings(0);
See also
Camera.quality
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
public quality : Number [read-only]
Description
Property (read-only); an integer specifying the required level of picture quality, as determined 
by the amount of compression being applied to each video frame. Acceptable quality values 
range from 1 (lowest quality, maximum compression) to 100 (highest quality, no 
compression). The default value is 0, which means that picture quality can vary as needed to 
avoid exceeding available bandwidth.