User Guide
FLVPlayback class 561
FLVPlayback.bitrate
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.bitrate
Description
Property; a number that specifies the bits per second at which to transfer the FLV file.
When doing a progressive download, you can use the SMIL format, but you must set the bit
rate because there is no automatic detection.
When streaming video from a FCS, you can provide a SMIL file that describes how to switch
between multiple streams based on bandwidth. Bandwidth is automatically detected by FCS,
and, in this case,
bitrate is ignored, if it is set.
For more information on using a SMIL file, see “Using a SMIL file” on page 712.
Example
The following example checks two radio buttons to determine what bit rate to use when
selecting an FLV file from the specified SMIL file. The relevant
video tags in the SMIL file
are shown in the following code:
<switch>
<video src="myvideo_mdm.flv" system-bitrate="56000" dur="3:00.1">
<video src="myvideo_isdn.flv" dur="3:00.1">
</switch>
For a low-speed connection, the code sets the bitrate property to force selection of the
appropriate FLV file. For higher speed connections, it takes advantage of automatic
bandwidth detection for streaming from FCS and does not set the bit rate.