Is there a way to read what line in a playlist sc_trans is currently playing? Something similar to ices.cue file for ices?
Announcement
Collapse
No announcement yet.
Playlist info for sc_trans
Collapse
X
-
Playlist info for sc_trans
idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)Tags: None
-
-
not knowing quite what ices.cue returns, though if you use the ajax api then there is 'GetStatus' (in the current sc_trans install -> sc_trans_ajax_api.txt - section 2.2) which will return the current and next track in the xml response returned. other than that there isn't any simple way to get the current / next track from sc_trans.
in the current sc_serv2 you can use 'currentsong' / 'nextsong' via the admin interface to get just plain data or there is the 'viewxml' action which returns something similar to 'GetStatus' but based on the information sc_serv2 has pulled from the metadata sc_trans has sent to it. see sc_serv2.txt - section 5.1 for more details on those options.
-daz
-
-
ices.cue returns among other things, current file playing, song length, # seconds song has played, artist, title, PID, and (what i'm interested in) line number of the playlist file - ie. the current song playing is the 755th line of the playlist file.
Looks like I'll have to read the last playing songs and parse the playlist file to get the info.
After a week of running the new sc_serv and sc_trans, I gives a big thumbs up for sc_trans. As for Shoutcast 2, it is nowhere near ready for prime time. I've found several ways to crash it both from the streaming and client side, and that's just unacceptable. I currently have a shoutcast 1 server that's been up 182 days. I'd expect the transcoder to crash more than the server.idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
Comment
-
-
is it possible to refresh on the fly the content of the music directory?
so i add some tracks but dont turn off sc_trans to re-read the playlist
./home/shoutcast/sc_trans/music/*.mp3
Comment
-
-
Originally Posted by xerano View Postis it possible to refresh on the fly the content of the music directory?
so i add some tracks but dont turn off sc_trans to re-read the playlist
./home/shoutcast/sc_trans/music/*.mp3idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
Comment
-
-
Originally Posted by idobi View Postices.cue returns among other things, current file playing, song length, # seconds song has played, artist, title, PID, and (what i'm interested in) line number of the playlist file - ie. the current song playing is the 755th line of the playlist file.
Originally Posted by idobi View PostAfter a week of running the new sc_serv and sc_trans, I gives a big thumbs up for sc_trans. As for Shoutcast 2, it is nowhere near ready for prime time. I've found several ways to crash it both from the streaming and client side, and that's just unacceptable.
-daz
Comment
-
-
Originally Posted by DrO View Posti'm all ears especially if you have reproduceable ways to crash the server (other than via the Winamp 5.5x connection crash - i probably should send you an interim build to see if it helps things out) as i'd like to get as many stability / compatibility issues resolved with the newer sc_serv2 for the next drop as i can.
-daz
I'll post info next week.idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
Comment
-
-
that's fine - which OS version of the server would you prefer for testing (will make more sense to test something current than the public drop with the fixes that are already in it) ? there's also a linux64 version if you're running on that.
-daz
Comment
-
-
I'm running both 32 and 64bit linux servers. Source machine is 64. Relays boxes are 32bit.idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
Comment
-
-
rightio, will send you a version of each tomorrow if that's ok (not in the mood to boot up the VM's and run off new builds as it's gone 10pm now).
-daz
Comment
-
-
rightio, will send you a version of each tomorrow if that's ok (not in the mood to boot up the VM's and run off new builds as it's gone 10pm now).
-daz
Comment
-
-
Originally Posted by DrO View Postrightio, will send you a version of each tomorrow if that's ok (not in the mood to boot up the VM's and run off new builds as it's gone 10pm now).
-dazidobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
Comment
-
-
Originally Posted by idobi View Postjust noticed that you're in the UK
pm sent with link to the test builds for you.
-daz
Comment
-
-
I'm in the process of converting my ices1->sc_serv server over to the new sc_trans and ran into exactly the same question. I use ices.cue to display realtime information on my site in a PHP page. If you've got ices.cue functionality working with sc_trans I'd love to know what you did.
Thanks!
---
Matthew R. Demicco
ArmiTunes Radio
Comment
-
Comment