summaryrefslogtreecommitdiffstats
path: root/modules/localplay/mpd.controller.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 01:24:39 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-06 01:24:39 +0000
commit56acdc4b64567461ca153f617e3ec86938369516 (patch)
tree1208cd4e33c2bfa2e228fe19f27248c856dd14a3 /modules/localplay/mpd.controller.php
parentbc0d3d581e4bf62e1afda4455612ab25951e0b5f (diff)
downloadampache-56acdc4b64567461ca153f617e3ec86938369516.tar.gz
ampache-56acdc4b64567461ca153f617e3ec86938369516.tar.bz2
ampache-56acdc4b64567461ca153f617e3ec86938369516.zip
turn the sajax stuff back into ajax and also commit some broken mpd skipping code yea!
Diffstat (limited to 'modules/localplay/mpd.controller.php')
-rw-r--r--modules/localplay/mpd.controller.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/localplay/mpd.controller.php b/modules/localplay/mpd.controller.php
index ac595b26..81bf3adf 100644
--- a/modules/localplay/mpd.controller.php
+++ b/modules/localplay/mpd.controller.php
@@ -66,6 +66,7 @@ class AmpacheMpd {
$map['connect'] = 'connect';
/* Recommended Functions */
+ $map['skip'] = 'skip';
$map['next'] = 'next';
$map['prev'] = 'prev';
$map['pause'] = 'pause';
@@ -186,6 +187,16 @@ class AmpacheMpd {
} // stop
+ /**
+ * skip
+ * This tells MPD to skip to the specified song
+ */
+ function skip($song) {
+
+ if (is_null($this->_mpd->SkipTo($song))) { return false; }
+ return true;
+
+ } // skip
/**
* next