Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
org.osmf.media 
MediaPlayerState 
Packageorg.osmf.media
Classpublic final class MediaPlayerState
InheritanceMediaPlayerState Inheritance Object

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayerState class enumerates public constants that describe the current state of the MediaPlayer.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
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 MediaPlayer is buffering.
MediaPlayerState
  LOADING : String = "loading"
[static] The MediaPlayer is loading or connecting.
MediaPlayerState
  PAUSED : String = "paused"
[static] The MediaPlayer is pausing media.
MediaPlayerState
  PLAYBACK_ERROR : String = "playbackError"
[static] The MediaPlayer encountered an error while trying to play media.
MediaPlayerState
  PLAYING : String = "playing"
[static] The MediaPlayer is playing media.
MediaPlayerState
  READY : String = "ready"
[static] The MediaPlayer is ready to be used.
MediaPlayerState
  UNINITIALIZED : String = "uninitialized"
[static] The MediaPlayer has been created but is not ready to be used.
MediaPlayerState
Constant Detail

BUFFERING

Constant
public static const BUFFERING:String = "buffering"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer is buffering.

LOADING

Constant 
public static const LOADING:String = "loading"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer is loading or connecting.

PAUSED

Constant 
public static const PAUSED:String = "paused"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer is pausing media.

PLAYBACK_ERROR

Constant 
public static const PLAYBACK_ERROR:String = "playbackError"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer encountered an error while trying to play media.

PLAYING

Constant 
public static const PLAYING:String = "playing"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer is playing media.

READY

Constant 
public static const READY:String = "ready"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer is ready to be used.

UNINITIALIZED

Constant 
public static const UNINITIALIZED:String = "uninitialized"

Language Version: ActionScript 3.0
Product Version: OSMF 4.0
Runtime Versions: Flash Player 10, AIR 1.0

The MediaPlayer has been created but is not ready to be used. This is the base state for a MediaPlayer.