Old 8th June 2006, 20:58   #1
Timi-loader
Junior Member
 
Join Date: Jun 2006
Posts: 5
TRANScast playlist change without restart

hello.. im searched it on the web but i dont found the answer...

why can i change the transcast playlist without restarting transcast??

(or is it possible to restart the prog so fast, that the users does not reconnect?)

wfg
Timi-loader
Timi-loader is offline   Reply With Quote
Old 8th June 2006, 22:08   #2
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
yes there is. You do need to send a signal to it.

From the sc_trans.conf file:
; sc_trans accepts the following signals:
; HUP - flush logfiles (close and reopen) -- will make console logging stop
; WINCH - jump to next song
; USR1 - reload playlist off disk (will not interrupt current playing stream)
; USR2 - toggle shuffle on/off
; TERM - normal sc_trans shutdown (clean)

so using
killall -USR1 sc_trans*

or
kill -USR1 process_id (where process_id is the pid for sc_trans)

That would reload the playlist file and if you changed it voila the new information is read again .. works great too!

If you have crossfading enabled, be aware that if you removed a song it was starting to fade in, it may give you dead air during the crossfade (normal behavior)

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 8th June 2006, 22:08   #3
Timi-loader
Junior Member
 
Join Date: Jun 2006
Posts: 5
i have tryed to kill and start the transcast in a very fast time ... and it functioned good... i dont must reconnect as user..

..but than i have a next question... how can i send these instructs via php?
Timi-loader is offline   Reply With Quote
Old 8th June 2006, 22:14   #4
Timi-loader
Junior Member
 
Join Date: Jun 2006
Posts: 5
wooow very thanx hackerdork! .. its great
Timi-loader is offline   Reply With Quote
Old 8th June 2006, 22:20   #5
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
read up on php. here's the link on how to do commandline / shell commands
http://us3.php.net/shell_exec

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump