diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-20 07:39:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-20 07:39:45 +0000 |
commit | 1dfdf2afab8da95da8c814e3838b3393d88ae53c (patch) | |
tree | f97be5925ed2dbef028d0902861771ea0a3ec473 /lib/class/localplay.abstract.php | |
parent | 649c44446a2368ac004ffa5778704f7213cf54ad (diff) | |
download | ampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.tar.gz ampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.tar.bz2 ampache-1dfdf2afab8da95da8c814e3838b3393d88ae53c.zip |
made localplay technically work, lots of work to still do
Diffstat (limited to 'lib/class/localplay.abstract.php')
-rw-r--r-- | lib/class/localplay.abstract.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/class/localplay.abstract.php b/lib/class/localplay.abstract.php index d8e21387..d66750a7 100644 --- a/lib/class/localplay.abstract.php +++ b/lib/class/localplay.abstract.php @@ -50,8 +50,21 @@ abstract class localplay_controller { * get_url * This returns the URL for the passed object */ - private function get_url($object) { + public function get_url($object) { + // This can get a little complicated + switch ($object_type) { + case 'random': + + break; + case 'radio': + case 'song': + default: + $url = $object->get_url(Stream::$session); + break; + } // end switch on objecttype + + return $url; } // get_url @@ -60,7 +73,7 @@ abstract class localplay_controller { * This returns the Filename for the passed object, not * always possible */ - private function get_file($object) { + public function get_file($object) { } // get_file |