| Package | qnx.events |
| Class | public class MediaPlayerEvent |
| Inheritance | MediaPlayerEvent flash.events.Event |
MediaPlayerEvent class provides event type functionality that is related to media player operation and media playback.
See also
| Property | Defined By | ||
|---|---|---|---|
| what : Object [read-only]
Indicates what has changed. | MediaPlayerEvent | ||
| Method | Defined By | ||
|---|---|---|---|
MediaPlayerEvent(type:String, what_:Object = null)
Creates a new MediaPlayerEvent instance given an event type. | MediaPlayerEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| BUFFER_CHANGE : String = bufferChange [static]
Dispatched when buffer levels change. | MediaPlayerEvent | ||
| INFO_CHANGE : String = infoChange [static]
Dispatched to communicate some information and/or a warning about the media or its playback. | MediaPlayerEvent | ||
| PREPARE_COMPLETE : String = prepareComplete [static]
Dispatched when the media file is ready for playback. | MediaPlayerEvent | ||
| RESET_COMPLETE : String = resetComplete [static]
Dispatched when the MediaPlayer instance has been reset. | MediaPlayerEvent | ||
| what | property |
what:Object [read-only]
Indicates what has changed. This object will contain a property with a value set to
true indicating the change:
| Property | What changed |
|---|---|
| duration | MediaPlayer.duration |
| trackIndex | MediaPlayer.trackIndex |
| position | MediaPlayer.position |
| mediaType | MediaPlayer.mediaType |
| name | MediaPlayer.metadata.name |
| album | MediaPlayer.metadata.album |
| artist | MediaPlayer.metadata.artist |
| genre | MediaPlayer.metadata.genre |
| comment | MediaPlayer.metadata.comment |
| bitrate | MediaPlayer.metadata.bitrate |
| url | MediaPlayer.metadata.url |
| track | MediaPlayer.metadata.track |
| video_width | MediaPlayer.metadata.video_width |
| video_height | MediaPlayer.metadata.video_height |
public function get what():Object| MediaPlayerEvent | () | Constructor |
public function MediaPlayerEvent(type:String, what_:Object = null)
Creates a new MediaPlayerEvent instance given an event type.
type:String — The event type.
| |
what_:Object (default = null) — A Boolean indicating whether or not the event supports event bubbling. Default is false.
|
| BUFFER_CHANGE | Constant |
public static const BUFFER_CHANGE:String = bufferChangeDispatched when buffer levels change.
| INFO_CHANGE | Constant |
public static const INFO_CHANGE:String = infoChangeDispatched to communicate some information and/or a warning about the media or its playback.
| PREPARE_COMPLETE | Constant |
public static const PREPARE_COMPLETE:String = prepareComplete
Dispatched when the media file is ready for playback. This event is dispatched after a call to prepare() or play().
| RESET_COMPLETE | Constant |
public static const RESET_COMPLETE:String = resetComplete
Dispatched when the MediaPlayer instance has been reset. This event indicates that the player is ready to prepare or play a new URL.
The RESET_COMPLETE event is dispatched after a call to reset().