| Package | com.distriqt.extension.mediaplayer.events |
| Class | public class AudioPlayerEvent |
| Inheritance | AudioPlayerEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| current : Number = 0
The current position in the media, in seconds
| AudioPlayerEvent | ||
| total : Number = 0
The total duration of the media in seconds. | AudioPlayerEvent | ||
| Method | Defined By | ||
|---|---|---|---|
AudioPlayerEvent(type:String, current:Number = 0, total:Number = 0, bubbles:Boolean = false, cancelable:Boolean = false) | AudioPlayerEvent | ||
clone():Event [override] | AudioPlayerEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| AUDIO_BECOMING_NOISY : String = audioplayer:audiobecomingnoisy [static]
Dispatched when the application audio would become "noisy", for example the headphones
were removed and play would continue through the device speakers. | AudioPlayerEvent | ||
| COMPLETE : String = audioplayer:complete [static]
| AudioPlayerEvent | ||
| INTERRUPTION_END : String = audioplayer:interruption:end [static]
Dispatched when the interruption that occurred is completed and you can resume audio playback
if you required. | AudioPlayerEvent | ||
| INTERRUPTION_START : String = audioplayer:interruption:start [static]
Dispatched when an interruption occurred such as receiving a phone call. | AudioPlayerEvent | ||
| LOADED : String = audioplayer:loaded [static]
Dispatched when the audio player completed loading from the source
| AudioPlayerEvent | ||
| LOADING : String = audioplayer:loading [static]
Dispatched when the audio player commenced loading from the source
| AudioPlayerEvent | ||
| PAUSED : String = audioplayer:paused [static]
| AudioPlayerEvent | ||
| PLAYING : String = audioplayer:playing [static]
| AudioPlayerEvent | ||
| current | property |
public var current:Number = 0
The current position in the media, in seconds
| total | property |
public var total:Number = 0
The total duration of the media in seconds.
| AudioPlayerEvent | () | Constructor |
public function AudioPlayerEvent(type:String, current:Number = 0, total:Number = 0, bubbles:Boolean = false, cancelable:Boolean = false)type:String | |
current:Number (default = 0) | |
total:Number (default = 0) | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) |
| clone | () | method |
override public function clone():EventReturnsEvent |
| AUDIO_BECOMING_NOISY | Constant |
public static const AUDIO_BECOMING_NOISY:String = audioplayer:audiobecomingnoisy
Dispatched when the application audio would become "noisy", for example the headphones
were removed and play would continue through the device speakers.
The extension will pause the audio automatically and if you want to continue playing you
should call play on your player.
| COMPLETE | Constant |
public static const COMPLETE:String = audioplayer:complete
| INTERRUPTION_END | Constant |
public static const INTERRUPTION_END:String = audioplayer:interruption:end
Dispatched when the interruption that occurred is completed and you can resume audio playback if you required.
| INTERRUPTION_START | Constant |
public static const INTERRUPTION_START:String = audioplayer:interruption:start
Dispatched when an interruption occurred such as receiving a phone call. Playback will be stopped until the interruption is complete
| LOADED | Constant |
public static const LOADED:String = audioplayer:loadedDispatched when the audio player completed loading from the source
| LOADING | Constant |
public static const LOADING:String = audioplayer:loadingDispatched when the audio player commenced loading from the source
| PAUSED | Constant |
public static const PAUSED:String = audioplayer:paused
| PLAYING | Constant |
public static const PLAYING:String = audioplayer:playing