User Guide

FLVPlayback class 571
FLVPlayback.bufferTime
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.bufferTime
Description
Property; a number that specifies the number of seconds to buffer in memory before
beginning to play a video stream. For FLV files streaming over RTMP, which are not
downloaded and buffer only in memory, it can be important to increase this setting from the
default value of 0.1. For a progressively downloaded FLV file over HTTP, there is little benefit
to increasing this value although it could improve viewing a high-quality video on an older,
slower computer.
Example
The following example sets the buffer time to 8 seconds for an FLV file streaming from
a FCS.
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to Frame 1 of the Timeline in the Actions panel.
In the statement that loads the
contentPath property, replace the italicized text with the
name and location of an FLV file on your FCS.
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.bufferTime = 8;
my_FLVPlybk.contentPath = "rtmp://host_name/somefolder/vid_name.flv";
NOTE
This property does not specify the amount of the FLV file to download before starting
playback.