| Package | fl.video |
| Class | public class VideoPlayer |
| Inheritance | VideoPlayer Video DisplayObject EventDispatcher Object |
| Language Version : | ActionScript 3.0 |
| Runtime Versions : | AIR 1.0, Flash Player 9.0.28.0 |
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.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | accessibilityProperties : 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 | ||
![]() | alpha : 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 | ||
![]() | blendMode : 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 | ||
![]() | cacheAsBitmap : Boolean
If set to true, Flash Player or Adobe AIR caches an internal bitmap representation of the
display object. | DisplayObject | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
![]() | deblocking : int
Indicates the type of filter applied to decoded video as part of post-processing. | Video | |
![]() | filters : 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 | ||
![]() | loaderInfo : LoaderInfo [read-only]
Returns a LoaderInfo object containing information about loading the file
to which this display object belongs. | DisplayObject | |
![]() | mask : 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 | ||
![]() | mouseX : Number [read-only]
Indicates the x coordinate of the mouse position, in pixels. | DisplayObject | |
![]() | mouseY : Number [read-only]
Indicates the y coordinate of the mouse position, in pixels. | DisplayObject | |
![]() | name : 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 | ||
![]() | opaqueBackground : Object
Specifies whether the display object is opaque with a certain background color. | DisplayObject | |
![]() | parent : 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 | ||
![]() | prototype : 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 | ||
![]() | root : 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 | |
![]() | rotation : Number
Indicates the rotation of the DisplayObject instance, in degrees, from its original orientation. | DisplayObject | |
![]() | scale9Grid : 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 | ||
![]() | scrollRect : Rectangle
The scroll rectangle bounds of the display object. | DisplayObject | |
![]() | smoothing : 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 | ||
![]() | stage : 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 | ||
![]() | transform : 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 | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a VideoPlayer object with a specified width and height. | VideoPlayer | ||
![]() | 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 | |
![]() |
Specifies a video stream from a camera to be displayed
within the boundaries of the Video object in the application. | Video | |
![]() |
Specifies a video stream to be displayed within the boundaries of the Video object
in the application. | Video | |
![]() |
Clears the image currently displayed in the Video object. | Video | |
Forces the video stream and Flash Media Server connection to close. | VideoPlayer | ||
![]() |
Dispatches an event into the event flow. | EventDispatcher | |
![]() |
Returns a rectangle that defines the area of the display object relative to the coordinate system
of the targetCoordinateSpace object. | DisplayObject | |
![]() |
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 | |
![]() |
Converts the point object from the Stage (global) coordinates
to the display object's (local) coordinates. | DisplayObject | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Evaluates the display object to see if it overlaps or intersects with the
obj display object. | DisplayObject | |
![]() |
Evaluates the display object to see if it overlaps or intersects with the
point specified by the x and y parameters. | DisplayObject | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
Similar to the play() method, but causes the FLV file
to load without playing. | VideoPlayer | ||
![]() |
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 | ||
Causes the video to play. | VideoPlayer | ||
Plays the FLV file when enough of it has downloaded. | VideoPlayer | ||
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
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 | ||
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
Sets the scaleX and scaleY properties simultaneously. | VideoPlayer | ||
Sets the width and height properties simultaneously. | VideoPlayer | ||
Stops video playback. | VideoPlayer | ||
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher | |
| Event | Summary | Defined By | ||
|---|---|---|---|---|
![]() | Dispatched when Flash Player or an AIR application gains operating system focus and becomes active. | EventDispatcher | ||
![]() | Dispatched when a display object is added to the display list. | DisplayObject | ||
![]() | Dispatched 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 | |||
![]() | Dispatched when Flash Player or an AIR application loses operating system focus and is becoming inactive. | EventDispatcher | ||
![]() | Dispatched 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 | |||
![]() | Dispatched when a display object is about to be removed from the display list. | DisplayObject | ||
![]() | Dispatched 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 | ||
![]() | Dispatched when the display list is about to be updated and rendered. | DisplayObject | ||
| Dispatched when the playback state changes. | VideoPlayer | |||
| Constant | Defined 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 | ||
| align | property |
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.
public function get align():String public function set align(value:String):voidSee also
| autoRewind | property |
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.
public function get autoRewind():Boolean public function set autoRewind(value:Boolean):void| bufferTime | property |
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.
public function get bufferTime():Number public function set bufferTime(value:Number):voidSee also
| bytesLoaded | property |
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.
public function get bytesLoaded():uint| bytesTotal | property |
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.
public function get bytesTotal():uint| height | property |
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.
public function set height(value:Number):voidSee also
| idleTimeout | property |
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.
public function get idleTimeout():Number public function set idleTimeout(value:Number):void| iNCManagerClass | property |
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.
| isLive | property |
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.
public function get isLive():BooleanSee also
| isRTMP | property |
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.
public function get isRTMP():BooleanSee also
| metadata | property |
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.
| Parameter | Description |
|---|---|
canSeekToEnd | A 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. |
cuePoints | An 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:
|
audiocodecid | A 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 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. |
audiodatarate | A number that is the kilobytes per second of audio. |
videocodecid | A number that is the codec version that was used to encode the video. |
framerate | A number that is the frame rate of the FLV file. |
videodatarate | A number that is the video data rate of the FLV file. |
height | A number that is the height of the FLV file. |
width | A number that is the width of the FLV file. |
duration | A number that specifies the duration of the FLV file in seconds. |
public function get metadata():ObjectSee also
| ncMgr | property |
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.
public function get ncMgr():INCManagerSee also
| netConnection | property |
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.
public function get netConnection():NetConnection| netStream | property |
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.
public function get netStream():NetStream| netStreamClientClass | property |
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.
VideoError — If this property is set to an invalid value, VideoError.NETSTREAM_CLIENT_CLASS_UNSET will be thrown.
|
| playheadTime | property |
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.
public function get playheadTime():Number public function set playheadTime(value:Number):voidSee also
| playheadUpdateInterval | property |
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.
public function get playheadUpdateInterval():Number public function set playheadUpdateInterval(value:Number):voidSee also
| progressInterval | property |
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.
public function get progressInterval():Number public function set progressInterval(value:Number):void| registrationHeight | property |
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:
registrationX = 100registrationY = 100registrationWidth = 60registrationHeight = 40align = VideoAlign.CENTERscaleMode = VideoScaleMode.NO_SCALEx = 90y = 80width = 80height = 80Example 2, load the same scenario as example 1 but with the following settings:
scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIOx = 110y = 100width = 40height = 80Example 3, load the same scenario as example 2 but with the following settings:
scaleMode = VideoScaleMode.EXACT_FITx = 100y = 100width = 60height = 40Setting 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.
public function get registrationHeight():Number public function set registrationHeight(value:Number):voidSee also
| registrationWidth | property |
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:
registrationX = 100registrationY = 100registrationWidth = 60registrationHeight = 40align = VideoAlign.CENTERscaleMode = VideoScaleMode.NO_SCALEx = 90y = 80width = 80height = 80Example 2, load the same scenario as example 1 but with the following settings:
scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIOx = 110y = 100width = 40height = 80Example 3, load the same scenario as example 2 but with the following settings:
scaleMode = VideoScaleMode.EXACT_FITx = 100y = 100width = 60height = 40Setting 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.
public function get registrationWidth():Number public function set registrationWidth(value:Number):voidSee also
| registrationX | property |
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:
registrationX = 100registrationY = 100registrationWidth = 60registrationHeight = 40align = VideoAlign.CENTERscaleMode = VideoScaleMode.NO_SCALEx = 90y = 80width = 80height = 80Example 2, load the same scenario as example 1 but with the following settings:
scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIOx = 110y = 100width = 40height = 80Example 3, load the same scenario as example 2 but with the following settings:
scaleMode = VideoScaleMode.EXACT_FITx = 100y = 100width = 60height = 40When 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.
public function get registrationX():Number public function set registrationX(value:Number):voidSee also
| registrationY | property |
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:
registrationX = 100registrationY = 100registrationWidth = 60registrationHeight = 40align = VideoAlign.CENTERscaleMode = VideoScaleMode.NO_SCALEx = 90y = 80width = 80height = 80Example 2, load the same scenario as example 1 but with the following settings:
scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIOx = 110y = 100width = 40height = 80Example 3, load the same scenario as example 2 but with the following settings:
scaleMode = VideoScaleMode.EXACT_FITx = 100y = 100width = 60height = 40When 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.
public function get registrationY():Number public function set registrationY(value:Number):voidSee also
| scaleMode | property |
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.
public function get scaleMode():String public function set scaleMode(value:String):voidSee also
| scaleX | property |
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.
public function set scaleX(value:Number):voidSee also
| scaleY | property |
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.
public function set scaleY(value:Number):voidSee also
| soundTransform | property |
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.
public function get soundTransform():SoundTransform public function set soundTransform(value:SoundTransform):voidSee also
| source | property |
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