|
|
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Forum King
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. |
|
|
|
|
|
#3 |
|
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? |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2006
Posts: 5
|
wooow very thanx hackerdork! .. its great
|
|
|
|
|
|
#5 |
|
Forum King
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|