diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-02 04:14:41 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-02 04:14:41 +0000 |
commit | e496a54bfa8271e727410dc66a82992a89081283 (patch) | |
tree | c70986355f9b33210639b2b6ce294cb92c6664b3 /lib/class/localplay.class.php | |
parent | 7ddeb585a05051ce9750a1daff0e688c8b6e9371 (diff) | |
download | ampache-e496a54bfa8271e727410dc66a82992a89081283.tar.gz ampache-e496a54bfa8271e727410dc66a82992a89081283.tar.bz2 ampache-e496a54bfa8271e727410dc66a82992a89081283.zip |
fixed the localplay controls, per limeds recommendation currently under rightbar actions, not happy with location
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index dc367b28..2b0d6b12 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -256,9 +256,7 @@ class Localplay { */ public function stop() { - $function = $this->_function_map['stop']; - - if (!$this->_player->$function()) { + if (!$this->_player->stop()) { debug_event('localplay','Error Unable to stop playback, check ' . $this->type . ' controller','1'); return false; } @@ -466,8 +464,6 @@ class Localplay { */ public function skip($song_id) { - $function = $this->_function_map['skip']; - if (!$this->_player->$function($song_id)) { debug_event('localplay','Error: Unable to skip to next song, check ' . $this->type . ' controller','1'); return false; @@ -484,9 +480,7 @@ class Localplay { */ public function next() { - $function = $this->_function_map['next']; - - if (!$this->_player->$function()) { + if (!$this->_player->next()) { debug_event('localplay','Error: Unable to skip to next song, check ' . $this->type . ' controller','1'); return false; } @@ -502,9 +496,8 @@ class Localplay { */ public function prev() { - $function = $this->_function_map['prev']; - if (!$this->_player->$function()) { + if (!$this->_player->prev()) { debug_event('localplay','Error: Unable to skip to previous song, check ' . $this->type . ' controller','1'); return false; } @@ -520,9 +513,7 @@ class Localplay { */ public function pause() { - $function = $this->_function_map['pause']; - - if (!$this->_player->$function()) { + if (!$this->_player->pause()) { debug_event('localplay','Error: Unable to pause song, check ' . $this->type . ' controller','1'); return false; } |