Using Subsonic to stream

General discussions.

Moderator: moderators

Using Subsonic to stream

Postby nemesys » Mon Aug 31, 2020 1:13 am

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!
nemesys
 
Posts: 2
Joined: Mon Aug 31, 2020 1:04 am

Re: Using Subsonic to stream

Postby acroyear » Wed Sep 02, 2020 12:41 pm

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.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 704
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Using Subsonic to stream

Postby nemesys » Wed Sep 02, 2020 3:44 pm

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.
nemesys
 
Posts: 2
Joined: Mon Aug 31, 2020 1:04 am


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests