Playlist as stream parameter

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Playlist as stream parameter

Postby zapp » Sat Jun 07, 2008 6:09 pm

Hi!
Is it possible to request a certain playlist via the http://server/subsonic/stream url?

Something like this:
http://server/subsonic/stream?playlist=rock&mode=random

It would be perfect, if subsonic could remember which songs were already played and keep them from playing again, before all songs of the list were played, if there are pauses between playing sessions.

What do you think?

-Rolf
zapp
 
Posts: 5
Joined: Sat Jun 07, 2008 6:00 pm

Postby sindre_mehus » Sun Jun 08, 2008 8:43 am

Hi Rolf,

Actually, that is possible. Just use the playlist file name in the "playlist" parameter, as in:

http://server/subsonic/stream?playlist=foo.m3u

Cheers,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby zapp » Thu Sep 25, 2008 9:47 am

Hi Sindre,

it's been a while, but thanks for your answer.

The problem (at least for me) with this setup is that my hardware player (a Chumby) is quite dumb with respect to playlist handling.

The use case is like this:
The Chumby can be used as a (mp3 streaming) alarm clock. You can give a mp3 or m3u URL as alarm source and the Chumby will start to stream using this URL at alarm time.

With your suggestion the device will always play the same songs in the same order.

I would like to have to Chumby to just get stream (created from a given playlist) w/o knowing anything about the playlist (m3u file). It should be up to the server to remember which songs were already played and which are still left between two requests.

Something like this:
1. Day 1 6:00 device starts playing stream from Subsonic URL
2. Day 1 7:00 device stops (user turned off alarm) after playing around 25 songs (randomized from a given playlist)

3. Day 2 6:00 device starts playing stream again
This time subsonic identified the continued session and starts streaming one of the remaining playlist songs.


Any chance to achieve this?

Thanks,
Rolf
zapp
 
Posts: 5
Joined: Sat Jun 07, 2008 6:00 pm

Postby sindre_mehus » Thu Sep 25, 2008 10:42 am

I think that is possible. In the Subsonic web interface, select the player (in the combo box in the playlist window) which represents your Chumby. Then, select "More" and create a random playlist. Make sure to select "Play more random songs when end of playlist is reached".

That's it. The URL to use in the Chumby is then
Code: Select all
http://localhost/stream?player=42&suffix=.mp3

(Replace "42" with the proper player ID).

Please let us know if it works.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby zapp » Thu Sep 25, 2008 11:08 am

Ok, I will try this.

One more question (I stumbled over the player id before):

How do I get my chumby registered as a player? Isn't it necessary to log in to the Subsonic interface to have the current ip address registered as new player? In the past I temporarily switched ip addresses and logged in to Subsonic with my laptop running on the chumbys ip address. But that felt "wrong". I guess I am missing something, right?

-Rolf
zapp
 
Posts: 5
Joined: Sat Jun 07, 2008 6:00 pm

Postby sindre_mehus » Thu Sep 25, 2008 11:16 am

Unless I'm sadly mistaken, a new player instance is automatically created when the Chumby first connects to Subsonic.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby zapp » Mon Sep 29, 2008 1:08 pm

Right. The Chumby did not show up in my normal user account, but in the admin account.

Once I figured that out, it worked.

Thanks!

-Rolf
zapp
 
Posts: 5
Joined: Sat Jun 07, 2008 6:00 pm

URL for streaming to Chumby

Postby mcyzyk » Sat Oct 09, 2010 10:29 pm

I am glad you got this to work! Can you please post the form of the URL you are using to stream to your Chumby? I'd like to stream to my Chumby. My Subsonic Player is "Chumby". My Subsonic account is "Admin". My Subsonic server is running on port 4040. I'd like to know, based in this info, what the form of my URL would be to stream to the MyStreams widget within my Chumby.

Something like?

http://myserverIP:4040/stream.mp3?player=Chumby

Thanks!

Mark
mcyzyk
 
Posts: 9
Joined: Sat Oct 09, 2010 10:22 pm

Re: Playlist as stream parameter

Postby mcyzyk » Sun Mar 04, 2012 3:32 pm

Bump.

I realize there is now a (commercially-available) Subsonic Chumby app, but I would simply like to setup a Chumby to Subsonic stream, but then control it from my PC, not from the Chumby itself. Knowing the correct format for setting up this stream would, I think, allow/enable/facilitate this...
mcyzyk
 
Posts: 9
Joined: Sat Oct 09, 2010 10:22 pm


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest