diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-09 20:58:04 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-09 20:58:04 +0000 |
commit | 17a4516e29e9ce9d2583d8b06431dfcdf5722c11 (patch) | |
tree | 4dcf79a137336f12d38476c12b26128d4098eda5 /server/localplay.ajax.php | |
parent | 883adcd52b1f4cb4afe4ff5062d1bb83218840ff (diff) | |
download | ampache-17a4516e29e9ce9d2583d8b06431dfcdf5722c11.tar.gz ampache-17a4516e29e9ce9d2583d8b06431dfcdf5722c11.tar.bz2 ampache-17a4516e29e9ce9d2583d8b06431dfcdf5722c11.zip |
added the controls to the mpd playlist does not refresh correctly, but does work
Diffstat (limited to 'server/localplay.ajax.php')
-rw-r--r-- | server/localplay.ajax.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/localplay.ajax.php b/server/localplay.ajax.php index eb7923b1..cd3ed212 100644 --- a/server/localplay.ajax.php +++ b/server/localplay.ajax.php @@ -58,6 +58,9 @@ switch ($_REQUEST['action']) { case 'stop': case 'play': case 'pause': + case 'volume_up': + case 'volume_down': + case 'volume_mute': $command = scrub_in($_REQUEST['command']); $localplay->$command(); break; @@ -94,6 +97,23 @@ switch ($_REQUEST['action']) { $key = 'localplay_instance_' . $_REQUEST['instance']; $results[$key] = ''; break; + case 'repeat': + // Make sure that they have access to do this again no clue + + // Scrub her in + $localplay = new Localplay($GLOBALS['user']->prefs['localplay_controller']); + $localplay->connect(); + $localplay->repeat(make_bool($_REQUEST['value'])); + break; + case 'random': + // Make sure that they have access to do this again no clue... seems + // to be a pattern here + + // Scrub her in + $localplay = new Localplay($GLOBALS['user']->prefs['localplay_controller']); + $localplay->connect(); + $localplay->random(make_bool($_REQUEST['value'])); + break; default: $results['rfc3514'] = '0x1'; break; |