Packageqnx.events
Classpublic class MediaPlayerEvent
InheritanceMediaPlayerEvent Inheritance flash.events.Event

The MediaPlayerEvent class provides event type functionality that is related to media player operation and media playback.

See also

MediaPlayer


Public Properties
 PropertyDefined By
  what : Object
[read-only] Indicates what has changed.
MediaPlayerEvent
Public Methods
 MethodDefined By
  
MediaPlayerEvent(type:String, what_:Object = null)
Creates a new MediaPlayerEvent instance given an event type.
MediaPlayerEvent
Public Constants
 ConstantDefined 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
Property Detail
whatproperty
what:Object  [read-only]

Indicates what has changed. This object will contain a property with a value set to true indicating the change:

PropertyWhat changed
durationMediaPlayer.duration
trackIndexMediaPlayer.trackIndex
positionMediaPlayer.position
mediaTypeMediaPlayer.mediaType
nameMediaPlayer.metadata.name
albumMediaPlayer.metadata.album
artistMediaPlayer.metadata.artist
genreMediaPlayer.metadata.genre
commentMediaPlayer.metadata.comment
bitrateMediaPlayer.metadata.bitrate
urlMediaPlayer.metadata.url
trackMediaPlayer.metadata.track
video_widthMediaPlayer.metadata.video_width
video_heightMediaPlayer.metadata.video_height


Implementation
    public function get what():Object
Constructor Detail
MediaPlayerEvent()Constructor
public function MediaPlayerEvent(type:String, what_:Object = null)

Creates a new MediaPlayerEvent instance given an event type.

Parameters
type:String — The event type.
 
what_:Object (default = null) — A Boolean indicating whether or not the event supports event bubbling. Default is false.
Constant Detail
BUFFER_CHANGEConstant
public static const BUFFER_CHANGE:String = bufferChange

Dispatched when buffer levels change.

INFO_CHANGEConstant 
public static const INFO_CHANGE:String = infoChange

Dispatched to communicate some information and/or a warning about the media or its playback.

PREPARE_COMPLETEConstant 
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_COMPLETEConstant 
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().