User Guide
VideoPlayer class 707
VideoPlayer class
Inheritance MovieClip > VideoPlayer class
ActionScript Class Name mx.video.VideoPlayer
VideoPlayer extends the MovieClip class and wraps a Video object.
The FLVPlayback class wraps the VideoPlayer class and Macromedia strongly encourages you
to use the FLVPlayback class in almost all cases. There is no functionality in the VideoPlayer
class that cannot be accessed using the FLVPlayback class.
The VideoPlayer class is included here because it allows you to create a video player with a
smaller SWF file. The VideoPlayer class does not allow you to include a skin or playback
controls, and it has a smaller API. You cannot find or seek to cue points, for example,
although
cuePoint events will occur.
In addition, the FLVPlayback class automatically interfaces with the NCManager class to
access streaming FLV files on a FCS, for example. You interact with the NCManager class
when you set the
contentPath property and when you pass a URL to the play() and
load() methods. If you use the VideoPlayer class by itself, however, you must include the
following statement in your ActionScript code to make sure the NCManager class is included:
_forceNCManager:mx.video.NCManager;
The NCManager class also has an interface class, INCManager, which allows you to replace
the NCManager class with a custom class for managing network communications. If you do
that, you also need to include the following statement, replacing
NCManager with the name of
the class you have provided:
mx.video.VideoPlayer.DEFAULT_INCMANAGER = "mx.video.NCManager";
You do not need to add this statement if you are using the default NCManager class.
To handle multiple streams for multiple bandwidths, NCManager supports a subset of SMIL.
For more information, see “Using a SMIL file” on page 712.
This section provides a summary of the VideoPlayer class. You can find detailed
documentation of the methods, properties, and events of the VideoPlayer class at
www.macromedia.com/go/videoplayer.
NOTE
You also can set DEFAULT_INCMANAGER to replace the default
mx.video.NCManager with the FLVPlayback component.