ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
fl.video 

VideoState  - AS3 Flash

Packagefl.video
Classpublic final class VideoState
InheritanceVideoState Inheritance Object

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

The VideoState class provides constant values for the read-only FLVPlayback.state and VideoPlayer.state properties.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Public Constants
 ConstantDefined By
  BUFFERING : String = "buffering"
[static] The video player is in the buffering state.
VideoState
  CONNECTION_ERROR : String = "connectionError"
[static] The video player is in the connection error state.
VideoState
  DISCONNECTED : String = "disconnected"
[static] The video player is in the disconnected state.
VideoState
  LOADING : String = "loading"
[static] The video player is in the loading state.
VideoState
  PAUSED : String = "paused"
[static] The video player is in the paused state.
VideoState
  PLAYING : String = "playing"
[static] The video player is in the playing state.
VideoState
  RESIZING : String = "resizing"
[static] The video player is in the resizing state.
VideoState
  REWINDING : String = "rewinding"
[static] The video player is in the rewinding state.
VideoState
  SEEKING : String = "seeking"
[static] The video player is in the seeking state.
VideoState
  STOPPED : String = "stopped"
[static] The video player is in the stopped state.
VideoState
Constant Detail

BUFFERING

Constant
public static const BUFFERING:String = "buffering"

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

The video player is in the buffering state. It enters this state immediately after a call is made to the play() or load() method. Use the FLVPlayback.state property to obtain the current state of the video player.

This is a responsive state.

Related API Elements

CONNECTION_ERROR

Constant 
public static const CONNECTION_ERROR:String = "connectionError"

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

The video player is in the connection error state. It enters this state when a video stream attempted to load but was unsuccessful. There are two possible reasons for the error: no connection to the server or the stream was not found. Use the FLVPlayback.state property to obtain the current state of the video player.

This is an unresponsive state.

Related API Elements

DISCONNECTED

Constant 
public static const DISCONNECTED:String = "disconnected"

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

The video player is in the disconnected state. It enters this state when the stream is closed by a call to the closeVideoPlayer() method or timed out on idle. Use the FLVPlayback.state property to obtain the current state of the video player.

The FLVPlayback instance is in a disconnected state until you set the FLVPlayback.source property.

Related API Elements

LOADING

Constant 
public static const LOADING:String = "loading"

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

The video player is in the loading state. It enters this state immediately after the play() or load() method is called or after the FLVPlayback.source property is set. Use the FLVPlayback.state property to obtain the current state of the video player.

This is an unresponsive state.

Related API Elements

PAUSED

Constant 
public static const PAUSED:String = "paused"

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

The video player is in the paused state. It enters this state when the FLV file is loaded, but play is paused by calling the pause() or load() method. Use the FLVPlayback.state property to obtain the current state of the video player.

This is a responsive state.

Related API Elements

PLAYING

Constant 
public static const PLAYING:String = "playing"

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

The video player is in the playing state. It enters this state when the FLV file is loaded and is playing. Use the FLVPlayback.state property to obtain the current state of the video player.

This is a responsive state.

Related API Elements

RESIZING

Constant 
public static const RESIZING:String = "resizing"

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

The video player is in the resizing state. It enters this state during autolayout. The FLVPlayback instance never has this constant's state value, only the VideoPlayer instance. Use the VideoPlayer.state property to obtain the current state of the video player.

This is a unresponsive state.

Related API Elements

REWINDING

Constant 
public static const REWINDING:String = "rewinding"

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

The video player is in the rewinding state. It enters this state when the video rewinds automatically. The video rewinds automatically after it has stopped, either by clicking the stop button or by the video playing to the end. After rewinding is complete, the state is stopped. Use the FLVPlayback.state property to obtain the current state of the video player.

This is an unresponsive state.

Related API Elements

SEEKING

Constant 
public static const SEEKING:String = "seeking"

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

The video player is in the seeking state. It enters this state after the seek() method is called and also while the user is scrubbing with the seek bar. Use the FLVPlayback.state property to obtain the current state of the video player.

This is an unresponsive state.

Related API Elements

STOPPED

Constant 
public static const STOPPED:String = "stopped"

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

The video player is in the stopped state. It enters this state when the FLV file is loaded and play is stopped by calling the stop() method or when the playhead reaches the end of the stream. Use the FLVPlayback.state property to obtain the current state of the video player.

This is a responsive state.

Related API Elements