![]() |
#1 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
Non-stop streaming + shuffle question
Hello! I've been using shoutcast before, but just on my local though, now I have a VPS and i'd like it to run non-stop radio.
1.I run sc_serv then sc_trans to start streaming music over the night when I'm offline (AutoDJ option, thx sc_trans ![]() 2.I have the shuffle option on, but it's pretty annoying sometimes, i saw in the log list that 3 of 4 following songs were about to be from Amon Amarth and the 4th song from another band. How can I make something like a restriction to make the next song not be the same band as the one playing atm. Ex: First song, that is playing now, is named X from Children of Bodom(band), but the next one(song 2) i'd like not to be from Children of Bodom too. Same for song 2, 3 and 3, 4. Any help? P.S: My radio is YP connected and not i cannot see any button for changing the description I've entered the first time i made the YP settings. Any help? |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
if sc_trans isn't on the same host (or even if it is and the connection drops) then it should keep re-trying to connect back to sc_serv. depending on the version of sc_trans you're using it can be either 60seconds or 30seconds before the connection is re-attempted (with a timeout option coming in the next sc_trans release to allow for a lower time to be set).
there's not much you can do to alter the shuffle implementation. you do have the means to have a script used as the playlist and just feed that back to sc_trans and control things from that side or just create a number of pre-shuffled playlists which you're happy with. though shuffling can and often will output things in the order you're seeing. -daz |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
And what if my VPS' connection is down for let's say... hmm.. 1 hour and then it gets back and i'm not at home? What should i do in this case? Waiting for a reply, thanks!
|
![]() |
![]() |
![]() |
#4 |
Join Date: Sep 2003
Posts: 27,873
|
if the DNAS / host is down there's pretty much nothing you can do unless you have a backup and have it in a round-robin type setup either by using the YP to handle client requests between the DNAS instances for you or you do it yourself.
however, if all you've got is one server, then if that goes down then there is nothing which can be done to keep the stream alive. as for making sure it automatically starts when the host starts then that would depend on what you're allowed to install and the OS that is running - going with what you prefer / like is the best option in that case. -daz |
![]() |
![]() |
![]() |
#5 | |
Join Date: Sep 2003
Posts: 27,873
|
Quote:
if using a v1 DNAS then you need to change it in the source i.e. sc_trans's config in this case. if using a v2 DNAS then you'd need to edit the authhash details via the server admin page as per the login method shown on http://wiki.winamp.com/wiki/SHOUTcas...ash_Management -daz |
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
Thanks for the authhaash help and yes i'd like to use a backup(autoDJ). If for an example i'll make the sc_serv and sc_trans to boot at startup, then they'll not start streaming 'cause it'll need someone to type the number of the config file. Am i right? Waiting for an answer, thx!
P.S: I checked the wikipedia link for the authhash prob. but i cannot find any useful information about it, I mean i cannot find any button for updating it...What should I do? |
![]() |
![]() |
![]() |
#7 | ||
Join Date: Sep 2003
Posts: 27,873
|
Quote:
Quote:
-daz |
||
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
yeap i had to put sid=0 cause the admin button from the right corner was directing me to sid=1
![]() ![]() P.S Fixed! |
![]() |
![]() |
![]() |
#9 | ||
Join Date: Sep 2003
Posts: 27,873
|
Quote:
Quote:
-daz |
||
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
Another problem, when someone's downloading something from the forum, ex. mydomain.ro:8000//admin.cgi it'll start downloading admin.cgi and it'll show the user as a listener at the listeners tab. And how can I make something for users to have the option to listen to the radio directly from the website?
|
![]() |
![]() |
![]() |
#11 |
Join Date: Sep 2003
Posts: 27,873
|
accessing of /admin.cgi should _never_ be making the DNAS try to server the stream to whatever is accessing it since if the password is wrong then it should just be throwing an error page (and there's nothing in the DNAS's code that i can see which would ever make it act in the way you're describing).
for direct client access to the stream, that just need to access the /listen.*?sid=x (where * is the playlist extension required and x is the stream number) or going to /index.html?sid=x and accessing the 'listen' link or entering serveraddress:serverport/stream/x/ (again where x is the stream number required). is all covered at http://wiki.winamp.com/wiki/SHOUTcas...2#Public_Pages which can be linked to from another webpage as needed. -daz |
![]() |
![]() |
![]() |
#12 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
I'll take a look later into what you said to me, btw i think i found a bug or something, i created a DJ account and pass and opened up a port for it, ex:
djport=900 dj:noise I've read the docs and i saw that for an example djport=900 will open port 901, and when i access it(port 901), i get the following error: No data received Unable to load the webpage because the server sent no data. Here are some suggestions: Reload this webpage later. But, when i access port 900, i get "Request Not Found". Any idea on what's happening ? ![]() |
![]() |
![]() |
![]() |
#13 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
Btw, about the direct streaming thing, i did as you said, but it just downloads the file, i'd like something like an incorporated player
![]() |
![]() |
![]() |
![]() |
#14 | ||
Join Date: Sep 2003
Posts: 27,873
|
Quote:
Quote:
-daz |
||
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Jan 2012
Posts: 8
|
Ok bro, thanks, any player recommended by the Shoutcast team ? Thanks!
|
![]() |
![]() |
![]() |
#16 |
Join Date: Sep 2003
Posts: 27,873
|
you could use the embeddable player from the site. otherwise there is no official recommendation for a site player from the team (as i've never been told about an official one to recommend if the site player is not suitable whilst i've been working on the DNAS, etc).
-daz |
![]() |
![]() |
![]() |
|
Tags |
question, sc_serv, sc_trans, shoutcast, streaming |
Thread Tools | Search this Thread |
Display Modes | |
|
|