diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-28 04:34:02 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-28 04:34:02 +0000 |
commit | 79ca59df627660d635a9373bfeb293592c173793 (patch) | |
tree | dee673409ee084f47f2121ff049f2bdd859fb057 /lib/class/localplay.class.php | |
parent | 705fba8f49faa42ed7f004f67b74a996c29ddb3d (diff) | |
download | ampache-79ca59df627660d635a9373bfeb293592c173793.tar.gz ampache-79ca59df627660d635a9373bfeb293592c173793.tar.bz2 ampache-79ca59df627660d635a9373bfeb293592c173793.zip |
fixed some localplay issues, now correctly shows the active instance at least for the MPD module
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index c5b16fd3..dc367b28 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -544,6 +544,18 @@ class Localplay { } // get_instances /** + * current_instance + * This returns the UID of the current Instance + */ + public function current_instance() { + + $data = $this->_player->get_instance(); + + return $data['id']; + + } // current_instance + + /** * add_instance * This adds a new instance for the current controller type */ @@ -554,6 +566,16 @@ class Localplay { } // add_instance /** + * set_active_instance + * This sets the active instance of the localplay controller + */ + public function set_active_instance($instance) { + + $this->_player->set_active_instance($instance); + + } // set_active_instance + + /** * delete * This removes songs from the players playlist as defined get function */ |