View comments | RSS feed
Packagefl.video
Classpublic class VideoPlayer
InheritanceVideoPlayer Inheritance Video Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The VideoPlayer class lets you create a video player with a slightly smaller SWF file than if you used the FLVPlayback component. Unlike the FLVPlayback component, the VideoPlayer class does not let you include a skin or playback controls, and although you cannot find or seek to cue points, the cuePoint events will occur. The FLVPlayback class wraps the VideoPlayer class.

Use the FLVPlayback class in almost all cases because there is no functionality in the VideoPlayer class that cannot be accessed using the FLVPlayback class.

In addition, the FLVPlayback class automatically interfaces with the NCManager class to access streaming FLV files on a video server, such as Flash Media Server. 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:

var _forceNCManager:fl.video.NCManager;

The NCManager class implements an interface, INCManager, and it can be replaced with a custom class for managing network communications that implements this interface. If you do that, you also need to include the following statement, replacing NCManager with the name of the class you have provided:

fl.video.VideoPlayer.iNCManagerClass = fl.video.NCManager;

You do not need to add this statement if you are using the default NCManager class.

Note: You also can set iNCManagerClass to replace the default fl.video.NCManager when using the FLVPlayback component.

To handle multiple streams for multiple bandwidths, NCManager supports a subset of SMIL.

View the examples

See also

NCManager
FLVPlayback


Public Properties
 PropertyDefined By
 InheritedaccessibilityProperties : AccessibilityProperties
The current accessibility options for this display object.
DisplayObject
  align : String
Specifies how the video is displayed relative to the registrationX, registrationY, registrationWidth and registrationHeight properties.
VideoPlayer
 Inheritedalpha : Number
Indicates the alpha transparency value of the object specified.
DisplayObject
  autoRewind : Boolean
A Boolean value that, if true, causes the FLV file to rewind to Frame 1 when play stops, either because the player reached the end of the stream or the stop() method was called.
VideoPlayer
 InheritedblendMode : String
A value from the BlendMode class that specifies which blend mode to use.
DisplayObject
  bufferTime : Number
A number that specifies the number of seconds to buffer in memory before beginning to play a video stream.
VideoPlayer
  bytesLoaded : uint
[read-only] A number that indicates the extent of downloading, in number of bytes, for an HTTP download.
VideoPlayer
  bytesTotal : uint
[read-only] A number that specifies the total number of bytes downloaded for an HTTP download.
VideoPlayer
 InheritedcacheAsBitmap : Boolean
If set to true, Flash Player or Adobe AIR caches an internal bitmap representation of the display object.
DisplayObject
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheriteddeblocking : int
Indicates the type of filter applied to decoded video as part of post-processing.
Video
 Inheritedfilters : Array
An indexed array that contains each filter object currently associated with the display object.
DisplayObject
  height : Number
[write-only] A number that specifies the height of the VideoPlayer instance (in pixels).
VideoPlayer
  idleTimeout : Number
The amount of time, in milliseconds, before Flash terminates an idle connection to a video server, such as Flash Media Server, because playing paused or stopped.
VideoPlayer
  iNCManagerClass : Object = fl.video.NCManager
[static] To make all VideoPlayer objects use your custom class as the default INCManager implementation, set the iNCManagerClass property to the class object or string name of your custom class.
VideoPlayer
  isLive : Boolean
[read-only] A Boolean value that is true if the video stream is live.
VideoPlayer
  isRTMP : Boolean
[read-only] A Boolean value that is true if the FLV file is streaming from Flash Media Server (FMS) using RTMP.
VideoPlayer
 InheritedloaderInfo : LoaderInfo
[read-only] Returns a LoaderInfo object containing information about loading the file to which this display object belongs.
DisplayObject
 Inheritedmask : DisplayObject
The calling display object is masked by the specified mask object.
DisplayObject
  metadata : Object
[read-only] An object that is a metadata information packet that is received from a call to the NetSteam.onMetaData() callback method, if available.
VideoPlayer
 InheritedmouseX : Number
[read-only] Indicates the x coordinate of the mouse position, in pixels.
DisplayObject
 InheritedmouseY : Number
[read-only] Indicates the y coordinate of the mouse position, in pixels.
DisplayObject
 Inheritedname : String
Indicates the instance name of the DisplayObject.
DisplayObject
  ncMgr : INCManager
[read-only] An INCManager object that provides access to an instance of the class implementing INCManager, which is an interface to the NCManager class.
VideoPlayer
  netConnection : NetConnection
[read-only] Allows direct access to the NetConnection instance created by the video player.
VideoPlayer
  netStream : NetStream
[read-only] Allows direct access to the NetStream instance created by the video player.
VideoPlayer
  netStreamClientClass : Object
[static] Registers a custom class for the NetStream's client property.
VideoPlayer
 InheritedopaqueBackground : Object
Specifies whether the display object is opaque with a certain background color.
DisplayObject
 Inheritedparent : DisplayObjectContainer
[read-only] Indicates the DisplayObjectContainer object that contains this display object.
DisplayObject
  playheadTime : Number
A number that is the current playhead time or position, measured in seconds, which can be a fractional value.
VideoPlayer
  playheadUpdateInterval : Number
A number that is the amount of time, in milliseconds, between each playheadUpdate event.
VideoPlayer
  progressInterval : Number
A number that is the amount of time, in milliseconds, between each progress event.
VideoPlayer
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  registrationHeight : Number
The height used to align the video content when autoresizing.
VideoPlayer
  registrationWidth : Number
The width used to align the video content when autoresizing.
VideoPlayer
  registrationX : Number
The x coordinate used to align the video content when autoresizing.
VideoPlayer
  registrationY : Number
The y coordinate used to align the video content when autoresizing.
VideoPlayer
 Inheritedroot : DisplayObject
[read-only] For a display object in a loaded SWF file, the root property is the top-most display object in the portion of the display list's tree structure represented by that SWF file.
DisplayObject
 Inheritedrotation : Number
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation.
DisplayObject
 Inheritedscale9Grid : Rectangle
The current scaling grid that is in effect.
DisplayObject
  scaleMode : String
Specifies how the video resizes after loading.
VideoPlayer
  scaleX : Number
[write-only] A number that is the horizontal scale.
VideoPlayer
  scaleY : Number
[write-only] A number that is the vertical scale.
VideoPlayer
 InheritedscrollRect : Rectangle
The scroll rectangle bounds of the display object.
DisplayObject
 Inheritedsmoothing : Boolean
Specifies whether the video should be smoothed (interpolated) when it is scaled.
Video
  soundTransform : SoundTransform
Provides direct access to the NetStream.soundTransform property to expose more sound control.
VideoPlayer
  source : String
[read-only] A string that specifies the URL of the FLV file to stream and how to stream it.
VideoPlayer
 Inheritedstage : Stage
[read-only] The Stage of the display object.
DisplayObject
  state : String
[read-only] A string that specifies the state of the component.
VideoPlayer
  stateResponsive : Boolean
[read-only] A Boolean value that is true if the state is responsive.
VideoPlayer
  totalTime : Number
[read-only] A number that is the total playing time for the video in seconds.
VideoPlayer
 Inheritedtransform : Transform
An object with properties pertaining to a display object's matrix, color transform, and pixel bounds.
DisplayObject
  videoHeight : int
[read-only] The source width of the loaded FLV file.
VideoPlayer
  videoWidth : int
[read-only] The source width of the loaded FLV file.
VideoPlayer
  visible : Boolean
A Boolean value that, if true, makes the VideoPlayer instance visible.
VideoPlayer
  volume : Number
A number in the range of 0 to 1 that indicates the volume control setting.
VideoPlayer
  width : Number
[write-only] A number that specifies the width of the VideoPlayer instance on the Stage.
VideoPlayer
  x : Number
[write-only] A number that specifies the horizontal position (in pixels) of the video player.
VideoPlayer
  y : Number
[write-only] A number that specifies the vertical position (in pixels) of the video player.
VideoPlayer
Public Methods
 MethodDefined By
  
VideoPlayer(width:int = 320, height:int = 240)
Creates a VideoPlayer object with a specified width and height.
VideoPlayer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Specifies a video stream from a camera to be displayed within the boundaries of the Video object in the application.
Video
 Inherited
Specifies a video stream to be displayed within the boundaries of the Video object in the application.
Video
 Inherited
Clears the image currently displayed in the Video object.
Video
  
Forces the video stream and Flash Media Server connection to close.
VideoPlayer
 Inherited
Dispatches an event into the event flow.
EventDispatcher
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
DisplayObject
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
Returns a rectangle that defines the boundary of the display object, based on the coordinate system defined by the targetCoordinateSpace parameter, excluding any strokes on shapes.
DisplayObject
 Inherited
Converts the point object from the Stage (global) coordinates to the display object's (local) coordinates.
DisplayObject
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Evaluates the display object to see if it overlaps or intersects with the obj display object.
DisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x and y parameters.
DisplayObject
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
load(url:String, totalTime:Number = NaN, isLive:Boolean = false):void
Similar to the play() method, but causes the FLV file to load without playing.
VideoPlayer
 Inherited
Converts the point object from the display object's (local) coordinates to the Stage (global) coordinates.
DisplayObject
  
Called by INCManager after the connection is complete or failed after a call to the INCManager.connectToURL() method.
VideoPlayer
  
Called by INCManager after the reconnection is complete or has failed after a call to the INCManager.reconnect() method.
VideoPlayer
  
Pauses video playback.
VideoPlayer
  
play(url:String = null, totalTime:Number = NaN, isLive:Boolean = false):void
Causes the video to play.
VideoPlayer
  
Plays the FLV file when enough of it has downloaded.
VideoPlayer
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
  
Seeks to a given time in the file, specified in seconds, with a precision of three decimal places (milliseconds).
VideoPlayer
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
  
setScale(scaleX:Number, scaleY:Number):void
Sets the scaleX and scaleY properties simultaneously.
VideoPlayer
  
setSize(width:Number, height:Number):void
Sets the width and height properties simultaneously.
VideoPlayer
  
Stops video playback.
VideoPlayer
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Events
 Event Summary Defined By
 InheritedDispatched when Flash Player or an AIR application gains operating system focus and becomes active.EventDispatcher
 InheritedDispatched when a display object is added to the display list.DisplayObject
 InheritedDispatched when a display object is added to the on stage display list, either directly or through the addition of a sub tree in which the display object is contained.DisplayObject
  Dispatched when the playhead is moved to the start of the video player because the autoRewind property is set to true.VideoPlayer
  Dispatched by the VideoPlayer instance when it closes the NetConnection by timing out or through a call to the close() method, or when you call the load() or play() methods or set the source property and cause the RTMP connection to close as a result.VideoPlayer
  Dispatched when playing completes because the player reached the end of the FLV file.VideoPlayer
  Dispatched when a cue point is reached.VideoPlayer
 InheritedDispatched when Flash Player or an AIR application loses operating system focus and is becoming inactive.EventDispatcher
 InheritedDispatched when the playhead is entering a new frame.DisplayObject
  Dispatched when the video player is resized or laid out.VideoPlayer
  Dispatched the first time the FLV file's metadata is reached.VideoPlayer
  Dispatched while the FLV file is playing at the frequency specified by the playheadUpdateInterval property or when rewinding starts.VideoPlayer
  Indicates progress made in number of bytes downloaded.VideoPlayer
  Event dispatched when an FLV file is loaded and ready to display.VideoPlayer
 InheritedDispatched when a display object is about to be removed from the display list.DisplayObject
 InheritedDispatched when a display object is about to be removed from the display list, either directly or through the removal of a sub tree in which the display object is contained.DisplayObject
 InheritedDispatched when the display list is about to be updated and rendered.DisplayObject
  Dispatched when the playback state changes.VideoPlayer
Public Constants
 ConstantDefined By
  SHORT_VERSION : String = "2.1"
[static] State variable indicating the short version number of the component.
VideoPlayer
  VERSION : String = "2.1.0.14"
[static] State variable indicating the long version number of the component.
VideoPlayer
Property Detail
alignproperty
align:String  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

Specifies how the video is displayed relative to the registrationX, registrationY, registrationWidth and registrationHeight properties. The align property does this autolayout when the scaleMode property is set to VideoScaleMode.MAINTAIN_ASPECT_RATIO or VideoScaleMode.NO_SCALE. Changing this property after an FLV file is loaded causes an automatic layout to start immediately. Values come from the VideoAlign class.

The default value is VideoAlign.CENTER.


Implementation
    public function get align():String
    public function set align(value:String):void

See also

autoRewindproperty 
autoRewind:Boolean  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A Boolean value that, if true, causes the FLV file to rewind to Frame 1 when play stops, either because the player reached the end of the stream or the stop() method was called. This property is meaningless for live streams.

The default value is false.


Implementation
    public function get autoRewind():Boolean
    public function set autoRewind(value:Boolean):void
bufferTimeproperty 
bufferTime:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that specifies the number of seconds to buffer in memory before beginning to play a video stream. For FLV files streaming over RTMP, which are not downloaded and buffer only in memory, it can be important to increase this setting from the default value of 0.1. For a progressively downloaded FLV file over HTTP, there is little benefit to increasing this value although it could improve viewing a high-quality video on an older, slower computer.

For prerecorded (not live) video, do not set the bufferTime property to 0; use the default buffer time or increase the buffer time.

This property does not specify the amount of the FLV file to download before starting playback.


Implementation
    public function get bufferTime():Number
    public function set bufferTime(value:Number):void

See also

bytesLoadedproperty 
bytesLoaded:uint  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that indicates the extent of downloading, in number of bytes, for an HTTP download. Returns 0 when there is no stream, when the stream is from Flash Media Server (FMS), or if the information is not yet available. The returned value is useful only for an HTTP download.


Implementation
    public function get bytesLoaded():uint
bytesTotalproperty 
bytesTotal:uint  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that specifies the total number of bytes downloaded for an HTTP download. Returns -1 when there is no stream, when the stream is from Flash Media Server (FMS), or if the information is not yet available. The returned value is useful only for an HTTP download.


Implementation
    public function get bytesTotal():uint
heightproperty 
height:Number  [write-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that specifies the height of the VideoPlayer instance (in pixels).

Note: Do not confuse this property with the flash.media.Video.height property which is similar to the fl.video.VideoPlayer.videoHeight property.


Implementation
    public function set height(value:Number):void

See also

idleTimeoutproperty 
idleTimeout:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The amount of time, in milliseconds, before Flash terminates an idle connection to a video server, such as Flash Media Server, because playing paused or stopped. This property has no effect on an FLV file downloading over HTTP.

If this property is set when a video stream is already idle, it restarts the timeout period with the new value.


Implementation
    public function get idleTimeout():Number
    public function set idleTimeout(value:Number):void
iNCManagerClassproperty 
public static var iNCManagerClass:Object = fl.video.NCManager

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

To make all VideoPlayer objects use your custom class as the default INCManager implementation, set the iNCManagerClass property to the class object or string name of your custom class. The FLVPlayback class includes the definition of the custom class; the video player does not.

The default value is "fl.video.NCManager" as a string.

isLiveproperty 
isLive:Boolean  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A Boolean value that is true if the video stream is live. This property is effective only when streaming from a video server, such as Flash Media Server or other Flash Video Streaming Service. The value of this property is ignored for an HTTP download.

Set the isLive property to false when sending a prerecorded video stream to the video player and to true when sending real-time data such as a live broadcast. For better performance when you set the isLive property to false, do not set the bufferTime property to 0.


Implementation
    public function get isLive():Boolean

See also

isRTMPproperty 
isRTMP:Boolean  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A Boolean value that is true if the FLV file is streaming from Flash Media Server (FMS) using RTMP. Its value is false for any other FLV file source.


Implementation
    public function get isRTMP():Boolean

See also

metadataproperty 
metadata:Object  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

An object that is a metadata information packet that is received from a call to the NetSteam.onMetaData() callback method, if available. Ready when the metadataReceived event is dispatched.

If the FLV file is encoded with the Flash 8 encoder, the metadata property contains the following information. Older FLV files contain only the height, width, and duration values.

ParameterDescription
canSeekToEndA Boolean value that is true if the FLV file is encoded with a keyframe on the last frame that allows seeking to the end of a progressive download movie clip. It is false if the FLV file is not encoded with a keyframe on the last frame.
cuePointsAn array of objects, one for each cue point embedded in the FLV file. Value is undefined if the FLV file does not contain any cue points. Each object has the following properties:
  • type—A string that specifies the type of cue point as either "navigation" or "event".
  • name—A string that is the name of the cue point.
  • time—A number that is the time of the cue point in seconds with a precision of three decimal places (milliseconds).
  • parameters—An optional object that has name-value pairs that are designated by the user when creating the cue points.
audiocodecidA number that indicates the audio codec (code/decode technique) that was used.
audiodelay A number that represents time 0 in the source file from which the FLV file was encoded.

Video content is delayed for the short period of time that is required to synchronize the audio. For example, if the audiodelay value is .038, the video that started at time 0 in the source file starts at time .038 in the FLV file.

Note that the FLVPlayback and VideoPlayer classes compensate for this delay in their time settings. This means that you can continue to use the time settings that you used in your the source file.

audiodatarateA number that is the kilobytes per second of audio.
videocodecidA number that is the codec version that was used to encode the video.
framerateA number that is the frame rate of the FLV file.
videodatarateA number that is the video data rate of the FLV file.
heightA number that is the height of the FLV file.
widthA number that is the width of the FLV file.
durationA number that specifies the duration of the FLV file in seconds.


Implementation
    public function get metadata():Object

See also

ncMgrproperty 
ncMgr:INCManager  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

An INCManager object that provides access to an instance of the class implementing INCManager, which is an interface to the NCManager class.

You can use this property to implement a custom INCManager that requires custom initialization.


Implementation
    public function get ncMgr():INCManager

See also

netConnectionproperty 
netConnection:NetConnection  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

Allows direct access to the NetConnection instance created by the video player.


Implementation
    public function get netConnection():NetConnection
netStreamproperty 
netStream:NetStream  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

Allows direct access to the NetStream instance created by the video player.


Implementation
    public function get netStream():NetStream
netStreamClientClassproperty 
public static var netStreamClientClass:Object

Language Version : ActionScript 3.0

Registers a custom class for the NetStream's client property. By default, fl.video.VideoPlayerClient is used; this class handles the onMetaData() and onCuePoint() messages. To add custom handling for other messages, such as onImageData() and onTextData(), you can create your own class and set this property to the class.

The constructor for the class must take a VideoPlayer instance as its only parameter, and it must have a Boolean ready property. This property should be false while the Client is still waiting for any data messages expected at the beginning of the file. If the VideoPlayer does its resize autorewind before these messages are received, they may never be received. By default, fl.video.VideoPlayerClient will return true from the ready property as soon as onMetaData() is called.

You can set the property to the class object itself (as in the example below) or the string name of the class:

        import fl.video.
        VideoPlayer.netStreamClientClass = MyCustomClient;
        

Note that setting it to the string name of the class is not enough by itself to force the class to be compiled into the SWF. The default value is the class object fl.video.VideoPlayerClient, not the string name.

It is strongly recommended that any custom implementation should subclass fl.video.VideoPlayer. To do otherwise risks breaking the metadata and cue point handling built into the VideoPlayer and the FLVPlayback component.

Player Version: Flash Player 9 Update 3.

The default value is fl.video.VideoPlayerClient.


Throws
VideoError — If this property is set to an invalid value, VideoError.NETSTREAM_CLIENT_CLASS_UNSET will be thrown.
playheadTimeproperty 
playheadTime:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that is the current playhead time or position, measured in seconds, which can be a fractional value. Setting this property triggers a seek and has all the restrictions of a seek.

When the playhead time changes, which includes once every .25 seconds while the FLV file plays, the component dispatches the playheadUpdate event.

For several reasons, the playheadTime property might not have the expected value immediately after calling one of the seek methods or setting playheadTime to cause seeking. First, for a progressive download, you can seek only to a keyframe, so a seek takes you to the time of the first keyframe after the specified time. (When streaming, a seek always goes to the precise specified time even if the source FLV file doesn't have a keyframe there.) Second, seeking is asynchronous, so if you call a seek method or set the playheadTime property, playheadTime does not update immediately. To obtain the time after the seek is complete, listen for the seek event, which does not fire until the playheadTime property has updated.


Implementation
    public function get playheadTime():Number
    public function set playheadTime(value:Number):void

See also

playheadUpdateIntervalproperty 
playheadUpdateInterval:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that is the amount of time, in milliseconds, between each playheadUpdate event. Setting this property while the FLV file is playing restarts the timer.

Because ActionScript cue points start on playhead updates, lowering the value of the playheadUpdateInterval property can increase the accuracy of ActionScript cue points.

Because the playhead update interval is set by a call to the global setInterval() method, the update cannot fire more frequently than the SWF file frame rate, as with any interval that is set this way. So, as an example, for the default frame rate of 12 frames per second, the lowest effective interval that you can create is approximately 83 milliseconds, or one second (1000 milliseconds) divided by 12.

The default value is 250.


Implementation
    public function get playheadUpdateInterval():Number
    public function set playheadUpdateInterval(value:Number):void

See also

progressIntervalproperty 
progressInterval:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that is the amount of time, in milliseconds, between each progress event. If you set this property while the video stream is playing, the timer restarts.


Implementation
    public function get progressInterval():Number
    public function set progressInterval(value:Number):void
registrationHeightproperty 
registrationHeight:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The height used to align the video content when autoresizing. Do not confuse the registrationHeight property with the height property. The height property reflects the actual height of the video content.

Example 1, load an 80x80 FLV file with the following settings:

Then, after automatic resizing, you get the following:

Example 2, load the same scenario as example 1 but with the following settings:

You get the following:

Example 3, load the same scenario as example 2 but with the following settings:

You get all the same values as the registration values:

Setting the registrationHeight property is equivalent to setting the height property and vice versa. Setting any other property or calling any method that alters the height, such as scaleX, setSize, and setScale, setting keeps height and registrationHeight in sync.


Implementation
    public function get registrationHeight():Number
    public function set registrationHeight(value:Number):void

See also

registrationWidthproperty 
registrationWidth:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The width used to align the video content when autoresizing. Do not confuse the registrationWidth property with the width property. The width property reflects the actual width of the video content.

Example 1, load an 80x80 FLV file with the following settings:

Then, after automatic resizing, you get the following:

Example 2, load the same scenario as example 1 but with the following settings:

You get the following:

Example 3, load the same scenario as example 2 but with the following settings:

You get all the same values as the registration values:

Setting the registrationWidth property is equivalent to setting the width property and vice versa. Setting any other property or calling any method that alters the width, such as scaleX, setSize, and setScale, also keeps width and registrationWidth in sync.


Implementation
    public function get registrationWidth():Number
    public function set registrationWidth(value:Number):void

See also

registrationXproperty 
registrationX:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The x coordinate used to align the video content when autoresizing. Do not confuse with the x property, which reflects the actual location of the video content.

Example 1, load an 80x80 FLV file with the following settings:

Then, after automatic resizing, you get the following:

Example 2, load the same scenario as example 1 but with the following settings:

You get the following:

Example 3, load the same scenario as example 2 but with the following settings:

You get all the same values as the registration values:

When either the x or registrationX property is set, the second property is changed to maintain its offset from the first. For example, if x = 10 and registrationX = 20, setting x = 110 also sets registrationX = 120.


Implementation
    public function get registrationX():Number
    public function set registrationX(value:Number):void

See also

registrationYproperty 
registrationY:Number  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

The y coordinate used to align the video content when autoresizing. Do not confuse with the y property, which reflects the actual location of the video content.

Example 1, load an 80x80 FLV file with the following settings:

Then, after automatic resizing, you get the following:

Example 2, load the same scenario as example 1 but with the following settings:

You get the following:

Example 3, load the same scenario as example 2 but with the following settings:

You get all the same values as the registration values:

When either the y or registrationY property is set, the second property is changed to maintain its offset from the first. For example, if y = 10 and registrationY = 20, setting y = 110 also sets registrationY = 120.


Implementation
    public function get registrationY():Number
    public function set registrationY(value:Number):void

See also

scaleModeproperty 
scaleMode:String  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

Specifies how the video resizes after loading. If set to VideoScaleMode.MAINTAIN_ASPECT_RATIO, maintains the video aspect ratio within the rectangle defined by registrationX, registrationY, registrationWidth and registrationHeight. If set to VideoScaleMode.NO_SCALE, causes the video to size automatically to the dimensions of the source FLV file. If set to VideoScaleMode.EXACT_FIT, causes the dimensions of the source FLV file to be ignored and the video is stretched to fit the rectangle defined by registrationX, registrationY, registrationWidth and registrationHeight. If this is set after an FLV file has been loaded an automatic layout will start immediately. Values come from VideoScaleMode.

The default value is VideoScaleMode.MAINTAIN_ASPECT_RATIO.


Implementation
    public function get scaleMode():String
    public function set scaleMode(value:String):void

See also

scaleXproperty 
scaleX:Number  [write-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that is the horizontal scale.

The default value is 1.


Implementation
    public function set scaleX(value:Number):void

See also

scaleYproperty 
scaleY:Number  [write-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A number that is the vertical scale.

The default value is 1.


Implementation
    public function set scaleY(value:Number):void

See also

soundTransformproperty 
soundTransform:SoundTransform  [read-write]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

Provides direct access to the NetStream.soundTransform property to expose more sound control. Set the property to change the settings; use the getter accessor method of the property to retrieve the current settings.


Implementation
    public function get soundTransform():SoundTransform
    public function set soundTransform(value:SoundTransform):void

See also

sourceproperty 
source:String  [read-only]

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0.28.0

A string that specifies the URL of the FLV file to stream and how to stream it. The URL can be an HTTP URL to an FLV file, an RTMP URL to a stream, or an HTTP URL to an XML file.

If you set this property through the Component inspector or the Property inspector, the FLV file begins loading and playing at the next enterFrame event. The delay provides time to set the isLive, autoPlay, and cuePoints properties, among others, which affect loading. It also allows ActionScript that is placed on the first frame to affect the FLVPlayback component before it starts playing.

If you set this property through ActionScript, it immediately calls the VideoPlayer.load() method when the autoPlay property is set to false. Alternativel