User Guide

FLVPlayback class 603
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline. 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 = 7;
var listenerObject:Object = new Object();
// listen for playing event on RTMP connection; display result of isRTMP
listenerObject.playing = function(eventObject:Object) {
trace("Value of isRTMP property is: " + my_FLVPlybk.isRTMP);
};
my_FLVPlybk.addEventListener("playing", listenerObject);
my_FLVPlybk.contentPath = "rtmp://my_servername/my_application/stream.flv";
See also
FLVPlayback.contentPath, FLVPlayback.load(), FLVPlayback.play()
FLVPlayback.load()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.load(contentPath:String[, totalTime:Number, isLive:Boolean])
Parameters
contentPath A string that specifies the URL of the FLV file to stream and how to stream it.
The URL can be a local path, an HTTP URL to an FLV file, an RTMP URL to an FLV file
stream, or an HTTP URL to an XML file.
totalTime A number that is the total playing time for the video. Optional.
isLive A Boolean value that is true if the video stream is live. This value is effective only
when streaming from FVSS or FCS. The value of this property is ignored for an HTTP
download. Optional.