User Guide
602 FLVPlayback Component (Flash Professional Only)
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.*;
var listenerObject:Object = new Object();
listenerObject.playing = function(eventObject:Object) {
trace("The isLive property is " + my_FLVPlybk.isLive);
};
my_FLVPlybk.addEventListener("playing", listenerObject);
my_FLVPlybk.contentPath = "rtmp://my_servername/my_application/stream.flv";
See also
FLVPlayback.contentPath, FLVPlayback.load()
FLVPlayback.isRTMP
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.isRTMP
Description
Property; a Boolean value that is true if the FLV file is streaming from a FCS or FVSS using
RTMP. Its value is
false for any other FLV file source. Read-only.
Example
The following example assumes playing a streaming FLV file from a FCS or FVSS. When the
playing event occurs, the example shows the value of the isRTMP property to indicate
whether the FLV file is coming from an RTMP URL.