PDA

View Full Version : Auto start playing



stinga`
2005-09-22, 23:50
G'day all,

Is there any way to start slimserver to start playing music automagically?
I.E. when the server stop for whatever reason and gets started again the music stop playing until you go in and explicitly start it.
It would be nice for it too pick up where it left off. I was using a server calls obs for doing this, very nice, but didn't cope with oggs, m4a's etc.

I have gludge to do it, where I use wget -o/dev/null <url> to do it, and I suppose I could interogate to see what is was doing previously.
I could write an on startup plugin somehow if I could get some pointers.

kdf
2005-09-23, 00:09
On 22-Sep-05, at 11:50 PM, stinga` wrote:

>
> G'day all,
>
> Is there any way to start slimserver to start playing music
> automagically?

edit slimserver.conf
add a line:
autoPlay=1

or
autoPlay:1

if you are using 6.2 builds.

that should do it. as long as you have a current playlist, the player
should start playing on startup.
-kdf

stinga`
2005-09-23, 00:17
G'day,

I don't use playlists, they are too slow, my slimserver stops doing anything, while processing it.

I either listen to a
-radio stream
-Random Mix
-or select some music manually.

I suppose I will use playlists in the future, but at the moment I don't.

I should be able to get the radio going sine it is stored in a playlist, but what about Random Mix?

Thanks.

max.spicer
2005-09-23, 00:23
I believe that when kdf says playlist he actually means "anything in the now playing list". Manually selected music and random mix should work fine. I'm not actually sure about radio streams, but I imagine they'll work too.

Max


G'day,

I don't use playlists, they are too slow, my slimserver stops doing anything, while processing it.

I either listen to a
-radio stream
-Random Mix
-or select some music manually.

I suppose I will use playlists in the future, but at the moment I don't.

I should be able to get the radio going sine it is stored in a playlist, but what about Random Mix?

Thanks.

mherger
2005-09-23, 00:25
> Is there any way to start slimserver to start playing music
> automagically?

Add the following line to your slimserver.pref file:

autoPlay: 1

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

stinga
2005-09-23, 00:33
Oooooo,

Cool :-)

Next question, is that a global variable or client variable, or does it not matter where I put it in the conf file?

mherger
2005-09-23, 03:17
> Next question, is that a global variable or client variable, or does
> it not matter where I put it in the conf file?

I somehow knew this was the next question :-). You can have both. What
was told so far was the global value. But you can also add it to a
player section like:

clients:
aa:bb:bd:dd:ee:dd:
autoplay: 1

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
SlimString Translation Helper (http://www.herger.net/slim/)

kdf
2005-09-23, 08:50
On 23-Sep-05, at 12:33 AM, stinga wrote:

>
> Oooooo,
>
> Cool :-)
>
> Next question, is that a global variable or client variable, or does it
> not matter where I put it in the conf file?
>
it is server wide.
it shouldn't matter where you put it, so long as it is not it the
middle of any other indented section
-k

Kurt
2005-11-07, 09:19
"edit slimserver.conf
add a line:
autoPlay=1

or
autoPlay:1

if you are using 6.2 builds.

that should do it. as long as you have a current playlist, the player
should start playing on startup.
-kdf"

If the player is set to Shuffle, will it re-shuffle the playlist before starting with this option set?

mherger
2005-11-07, 10:48
> If the player is set to Shuffle, will it re-shuffle the playlist before
> starting with this option set?

I think this is yet another setting... see Server Settings/Behaviour. And
when you try it, please report back. :-)

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)