Camera class
31
Description
Method; specifies which video frames are transmitted in full (called
keyframes
) instead of being
interpolated by the video compression algorithm. This method is generally applicable only if
you are transmitting video using Flash Media Server.
The Flash Video compression algorithm compresses video by transmitting only what has
changed since the last frame of the video; these portions are considered to be interpolated
frames. It may help to compare this concept with how tweening and keyframes interact within
the Flash authoring environment: the frames between keyframes are created (interpolated)
based on the contents of the previous frame. Similarly, frames of a video can be interpolated
according to the contents of the previous frame. A keyframe, however, is a video frame that is
complete; it is not interpolated from prior frames.
To determine how to set a value for
keyframeInterval
, consider both bandwidth use and
video playback accessibility. For example, specifying a higher value for
keyframeInterval
(sending keyframes less frequently) reduces bandwidth use. However, this may increase the
amount of time required to position the playhead at a particular point in the video; more
prior video frames may have to be interpolated before the video can resume.
Conversely, specifying a lower value for
keyframeInterval
(sending keyframes more
frequently) increases bandwidth use because entire video frames are transmitted more often,
but may decrease the amount of time required to seek a particular video frame within a
recorded video.
See also
Camera.keyFrameInterval
Camera.setLoopback()
Availability
■
Flash Player 6.
■
Flash Media Server (not required).
Usage
public
setLoopback(
compressLocalStream
: Boolean) : Void
Parameters
compressLocalStream
A Boolean value that specifies whether to use a compressed video
stream (
true
) or an uncompressed stream (
false
) for a local view of what the camera is
receiving. The default value is
false
.
Содержание 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...