qnx.events.MediaPlayerEvent

MediaPlayerEvent

Properties | Methods | Constants


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.

Class information:
BlackBerry 10 Version:   10.0.0

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

what


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()


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_CHANGE


public static const BUFFER_CHANGE:String = bufferChange

Dispatched when buffer levels change.

INFO_CHANGE


public static const INFO_CHANGE:String = infoChange

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

PREPARE_COMPLETE


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


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





comments powered by Disqus