edgecase / spotbox

Official jukebox of the EdgeCase lab
Other
13 stars 1 forks source link

Play and Pause controls #5

Closed tonywok closed 12 years ago

tonywok commented 12 years ago

Play should toggle to pause when playing Pause should toggle to play when paused

tonywok commented 12 years ago

I pushed a rough version of this to player_submodules (this branch needs to die soon).

It's a basic state machine for stopped/playing/paused. It uses an unpause method to distinguish the difference between loading and playing a track vs just stopping and starting a track without unloading it.

Need to fix the initial state problem before marking closed. Also, some code review would be rad.

tonywok commented 12 years ago

After code review

Move unpause/play logic to the server side player model.

tonywok commented 12 years ago

Merged in!