Packagevn.karaokeplayer.audio
Interfacepublic interface IAudioPlayer
ImplementorsAudioPlayer



Public Properties
 PropertyDefined by
  audioCompleted : ISignal
[read-only]
IAudioPlayer
  autoPlay : Boolean
IAudioPlayer
  length : Number
[read-only]
IAudioPlayer
  loadCompleted : ISignal
[read-only]
IAudioPlayer
  loadProgress : ISignal
[read-only]
IAudioPlayer
  pausing : Boolean
[read-only]
IAudioPlayer
  playing : Boolean
[read-only]
IAudioPlayer
  position : Number
[read-only]
IAudioPlayer
  ready : ISignal
[read-only]
IAudioPlayer
Public Methods
 MethodDefined by
  
init(sound:Sound):void
TODO: create test case to test this flow
IAudioPlayer
  
open(soundURL:String):void
IAudioPlayer
  
pause():void
IAudioPlayer
  
play(startTime:Number = 0):void
play the beat
IAudioPlayer
  
seek(pos:Number):Boolean
IAudioPlayer
  
stop():void
IAudioPlayer
Property detail
audioCompletedproperty
audioCompleted:ISignal  [read-only]Implementation
    public function get audioCompleted():ISignal
autoPlayproperty 
autoPlay:Boolean  [read-write]Implementation
    public function get autoPlay():Boolean
    public function set autoPlay(value:Boolean):void
lengthproperty 
length:Number  [read-only]Implementation
    public function get length():Number
loadCompletedproperty 
loadCompleted:ISignal  [read-only]Implementation
    public function get loadCompleted():ISignal
loadProgressproperty 
loadProgress:ISignal  [read-only]Implementation
    public function get loadProgress():ISignal
pausingproperty 
pausing:Boolean  [read-only]Implementation
    public function get pausing():Boolean
playingproperty 
playing:Boolean  [read-only]Implementation
    public function get playing():Boolean
positionproperty 
position:Number  [read-only]Implementation
    public function get position():Number
readyproperty 
ready:ISignal  [read-only]Implementation
    public function get ready():ISignal
Method detail
init()method
public function init(sound:Sound):void

TODO: create test case to test this flow

Parameters
sound:Sound
open()method 
public function open(soundURL:String):voidParameters
soundURL:String
pause()method 
public function pause():void
play()method 
public function play(startTime:Number = 0):void

play the beat

Parameters
startTime:Number (default = 0)
seek()method 
public function seek(pos:Number):BooleanParameters
pos:Number

Returns
Boolean
stop()method 
public function stop():void