MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 709

Components language reference
Table of Contents

Advertisement

VideoPlayer class
Inheritance
MovieClip > VideoPlayer class
ActionScript Class Name
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
events will occur.
cuePoint
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
methods. If you use the VideoPlayer class by itself, however, you must include the
load()
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
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.
You also can set DEFAULT_INCMANAGER to replace the default
mx.video.NCManager with the FLVPlayback component.
To handle multiple streams for multiple bandwidths, NCManager supports a subset of SMIL.
For more information, see
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.
mx.video.VideoPlayer
property and when you pass a URL to the
"Using a SMIL file" on page
play()
with the name of
NCManager
712.
VideoPlayer class
and
707

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents