From 3b0791a0e038937b6d1dab49e6599aff5f48a4ab Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 2 Apr 2006 08:49:58 +0000 Subject: empty localplay api class... just a concept right now... --- lib/class/localplay.class.php | 125 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 lib/class/localplay.class.php (limited to 'lib') diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php new file mode 100644 index 00000000..4c96f559 --- /dev/null +++ b/lib/class/localplay.class.php @@ -0,0 +1,125 @@ +_function_map['add'] = $data['add']; + $this->_function_map['delete'] = $data['delete']; + $this->_function_map['play'] = $data['play']; + $this->_function_map['stop'] = $data['stop']; + + /* Recommended Functions */ + $this->_function_map['next'] = $data['next']; + $this->_function_map['prev'] = $data['prev']; + $this->_function_map['get_playlist'] = $data['get_playlist']; + $this->_function_map['get_playing'] = $data['get_playing']; + + /* Optional Functions */ + $this->_function_map['volume_set'] = $data['volume_set']; + $this->_function_map['volume_up'] = $data['volume_up']; + $this->_function_map['volume_down'] = $data['volume_down']; + + } // _map_functions + + /** + * add + * This function takes an array of song_ids and then passes the full URL + * to the player, this is a required function. + */ + function add($songs) { + + + /* Call the Function Specified in the Function Map */ + + + } // add + + +} //end localplay class +?> -- cgit