User Guide

32 Client-Side ActionScript Language Reference
Returns
Nothing.
Description
Method; specifies whether to use a compressed video stream for a local view of the camera.
This method is generally applicable only if you are transmitting video using the Flash Media
Server; setting
compressLocalStream to true lets you see more precisely how the video will
appear to users when they view it in real time.
Although a compressed stream is useful for testing purposes, such as previewing video quality
settings, it has a significant processing cost, because the local view is not simply compressed; it
is compressed, edited for transmission as it would be over a live connection, and then
decompressed for local viewing.
To set the amount of compression used when you set
compressLocalStream to true, use
Camera.setQuality().
Example
In the following example, if the user presses a loopback button, the loopback value is set to
true:
on (press) {
if (_root.active_cam.loopback==false) {
_root.active_cam.setLoopback(true);
} else {
debugWindow+="You're already compressing the stream." + newline;
}
See also
Camera.loopback, Camera.setQuality()
Camera.setMode()
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
public setMode([width:Number], [height:Number], [fps:Number],
[favorArea:Boolean]) : Void