|
FLV Player API
Flash Video MX 2.5.1 or above can generate an independent SWF embedded with a FLV file or a SWF file as a FLV player which can play the corresponding FLV. Both types of files contain the same programming interfaces. These programming interfaces allow you to control the player, such as the action to play, pause, stop, seek, change the control bar's color and so on. Meanwhile, they make it possible for your program to catch all sorts of events with control bar, e.g. cue point event. The events will be triggered when you click the play button or stop button.
The two types of Flash files, Embed the video in SWF and play in timeline and Progressive download from a web server, which are independent from each other, feature them in the following aspects:
a) Embed the video in SWF and play in timeline
- Video is embedded in the SWF file
- Large file size
- Play independently without relying on other file
- Progressive download
- Integer frame rate
- Limit to 16000 frames (Even though Flash Video MX can generate SWF with more than 16000 frames, Flash Player cannot play the rest frames after the 16000th frame. Flash Video MX may inform you if your video is more than 16000 frames)
- Function of seeking to any frame within the 16000 frames
b) Progressive download from a web server
- Video is saved as FLV file
- Independent FLV player
- Progressive download
- Floating-point frame rate
- No duration limit
- Only seek to keyframe
- Programming interface
Both of the above files support the same programming interfaces. With the methods and events of the player object, you can use the programming interfaces to control the playing as you like. And Flash Video MX provides a player for you. With the player, you can use Action Script to play FLV files and handle FLV Cue Points. What's more, it also allows you to encode Cue Points in an independent SWF file.
|