Page 1 of 1

Using Subsonic to stream

PostPosted: Mon Aug 31, 2020 1:13 am
by nemesys
I got Subsonic Premium successfully configured.

However, I haven't been able to make my songs available for playing directly. What I mean is, just accessing a URL in a browser and having the songs playing. Is this something that is possible? What I intended to do was to have a stream playing on my land in Second Life. But it seems that if I access my shared media in a browser, there is always a web page loaded with a player at the top that needs to be clicked. I don't want this. I want the stream to start playing as soon as the URL is accessed, like QuickTime Streaming Server used to do. In Second Life (or iTunes (or now Music on macOS), I can paste the following URL and it will start playing without the need of clicking anything: http://181fm-edge1.cdnstream.com/181-breeze_128k.mp3.

So, is this something possible with Subsonic or did I just waste $12?

By the way, how does one add songs to a playlist? I created a playlist but I've been unable to find how to add songs to it! I must be dumb!

Re: Using Subsonic to stream

PostPosted: Wed Sep 02, 2020 12:41 pm
by acroyear
The streaming URL for a song is in the API. http://www.subsonic.org/pages/api.jsp#stream and you really just need 'id=' for the song id, plus the required parameters (see Introduction at the top of that page). How to get that ID without some system for surfing, I can't say. But you can't just access the files by filename - the server has already processed everything and allocated database IDs, and doesn't expose the raw filesystem.

yes, the stream API is different from the URL that would be streamed to the internal player (and the 'shared' player), both of which get their auth tokens in a different way.

For playlists - as you browse in the main UI, there are checkboxes next to the entries for songs. Click the checkbox and then there's a "Selected Songs" menu at the bottom of that page - that has "Add to Playlist". You'll get prompted with the list of playlists you can add them to.

Re: Using Subsonic to stream

PostPosted: Wed Sep 02, 2020 3:44 pm
by nemesys
acroyear wrote:The streaming URL for a song is in the API. http://www.subsonic.org/pages/api.jsp#stream and you really just need 'id=' for the song id, plus the required parameters (see Introduction at the top of that page). How to get that ID without some system for surfing, I can't say. But you can't just access the files by filename - the server has already processed everything and allocated database IDs, and doesn't expose the raw filesystem.

yes, the stream API is different from the URL that would be streamed to the internal player (and the 'shared' player), both of which get their auth tokens in a different way.

For playlists - as you browse in the main UI, there are checkboxes next to the entries for songs. Click the checkbox and then there's a "Selected Songs" menu at the bottom of that page - that has "Add to Playlist". You'll get prompted with the list of playlists you can add them to.


Thanks, Joe. I'll give it a try as soon as I can.