Package | com.adobe.mediacore.events |
Class | public final class MediaPlayerStatusChangeEvent |
Inheritance | MediaPlayerStatusChangeEvent ![]() |
Property | Defined By | ||
---|---|---|---|
error : MediaError [read-only]
The error which occurred and changed the status to ERROR. | MediaPlayerStatusChangeEvent | ||
status : String [read-only]
The status of the player. | MediaPlayerStatusChangeEvent |
Method | Defined By | ||
---|---|---|---|
MediaPlayerStatusChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = null, error:MediaError = null)
Default constructor. | MediaPlayerStatusChangeEvent | ||
clone():Event [override]
| MediaPlayerStatusChangeEvent | ||
[static]
Factory method for this event. | MediaPlayerStatusChangeEvent |
Constant | Defined By | ||
---|---|---|---|
STATUS_CHANGED : String = statusChanged [static]
Event dispatched when the media player change its status. | MediaPlayerStatusChangeEvent |
error | property |
error:MediaError
[read-only] The error which occurred and changed the status to ERROR.
public function get error():MediaError
status | property |
status:String
[read-only] The status of the player.
public function get status():String
MediaPlayerStatusChangeEvent | () | Constructor |
public function MediaPlayerStatusChangeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, status:String = null, error:MediaError = null)
Default constructor.
Parameterstype:String — Event type.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior associated with the event can be prevented.
| |
status:String (default = null ) — The new status of the player.
| |
error:MediaError (default = null ) — The error which trigger the player to transition into an ERROR status.
|
clone | () | method |
override public function clone():Event
Returns
Event |
create | () | method |
public static function create(status:String, error:MediaError):MediaPlayerStatusChangeEvent
Factory method for this event.
Parameters
status:String — The new status of the player
| |
error:MediaError — The error which trigger the player to transition into an ERROR status.
|
MediaPlayerStatusChangeEvent |
STATUS_CHANGED | Constant |
public static const STATUS_CHANGED:String = statusChanged
Event dispatched when the media player change its status. The current status is exposed through status property. When the player goes into ERROR status the client can use error property of this event to access the error which caused it.
See also