From 1dfdf2afab8da95da8c814e3838b3393d88ae53c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 20 Sep 2007 07:39:45 +0000 Subject: made localplay technically work, lots of work to still do --- lib/class/localplay.abstract.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'lib/class/localplay.abstract.php') 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 -- cgit