PDA

View Full Version : Command line option for controling playback



bhaagensen
2007-05-03, 22:14
Hi,

I've got Softsqueeze playing music from my slimserver and want to be able to have basic playback control using a lirc-compatible remote. My plan was to use irexec to execute commands (/bin/sh equivalent). I was imagining something in the style of either:

$slimserver -playerid -{next,previous,play,pause,vol_up,vol_down)

or

$softsqueeze -{next,previous,play,pause,vol_up,vol_down)

Had a look at the CLI interface but I don't see how to do this as this requires logging into the slimserver.

Though my setup is linux based, I posted here since what I'm looking for should be possible using cmd.exe in Windows.

Thanks for any advice.

Bjørn

mherger
2007-05-03, 22:30
> Had a look at the CLI interface but I don't see how to do this as this
> requires logging into the slimserver.

Have a look at the playlist commands. They take the player ID as the first
parameter:

<playerid> playlist index +1

....whould forward to the next song.

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

bhaagensen
2007-05-04, 07:10
Thanks for the reply. I still don't understand how this would work. Am I not correct in that using the CLI interface requires telnet'ing the slimserver ? If so, how would I use lirc to issue commands ? E.g. what script would, when invoked from a regular terminal promt, issue commands at the telnet promt ?

I'd like to know whether/how this is done. I found another solution though. Using irxevent, one can map remote commands to keypresses. So I've made a configuration based on the keyboard shortcuts available in Softsqueeze. irexevent is pretty neat.