Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
saiday committed Feb 4, 2014
1 parent 6ba381e commit a49452d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,25 +132,25 @@ Register Handlers of HysteriaPlayer, all Handlers are optional.

Specified event would trigger related callback blocks.

- __RateChanged:CurrentItemChanged:PlayerDidReachEnd:__ :
#### __RateChanged:CurrentItemChanged:PlayerDidReachEnd:__ : ####

**PlayerRateChanged**'s callback block will be called when player's rate changed, probely 1.0 to 0.0 or 0.0 to 1.0. You should update your UI to notice the user what's happening. HysteriaPlayer have __getHysteriaPlayerStatus:__ method helping you find out the informations.
- HysteriaPlayerStatusPlaying : Player is playing
- HysteriaPlayerStatusForcePause : Player paused when Player's property `PAUSE_REASON_ForcePause = YES`.
- HysteriaPlayerStatusBuffering : Player suspended because of no buffered.
- HysteriaPlayerStatusUnknown : Player status unknown.
- HysteriaPlayerStatusPlaying : Player is playing
- HysteriaPlayerStatusForcePause : Player paused when Player's property `PAUSE_REASON_ForcePause = YES`.
- HysteriaPlayerStatusBuffering : Player suspended because of no buffered.
- HysteriaPlayerStatusUnknown : Player status unknown.

**CurrentItemChanged**'s callback block will be called when player's currentItem changed. If you have UI elements related to Playing item, should update them.(i.e. title, artist, artwork ..)

**PlayerDidReachEnd**'s callback block will be called when player stops, reaching the end of playing queue and repeat is disabled.

- __ReadyToPlay__ :
#### __ReadyToPlay__ : ####
It will be called when **Player** or **PlayerItem** ready to play.

- __CurrentItemPreLoaded__ :
#### __CurrentItemPreLoaded__ : ####
It will be called when receive new buffer data.

- __Failed__ :
#### __Failed__ : ####
It will be called when **Player** or **PlayerItem** failed.


Expand Down

0 comments on commit a49452d

Please sign in to comment.