| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sun Jul 16, 2006 4:33 am Post subject: An Ices/EZStream Question |
|
|
I am looking to setup a playlist in EZStream or Ices that plays only once, and does not repeat. In my limited experience, both these applications endlessy repeat a playlist. Is there a way to make them play only once, or redirect back to a fallback mount once the playlist is over?
If Ices or EZStream can't do this, can someone suggest a source client that does?
Thanks for your time,
Jason@Proton Radio
update: Doesn't look like EZStream can do this, Ices2 CAN do this, but I need to be able to stream MP3-- Ices's doesnt seem to have a way to do this, if we script the playlist/file then what command can the Perl script give to stop playback? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Sep 12, 2006 3:41 am Post subject: |
|
|
I can think of a way to do this from a purely theoretical standpoint.
Simply run EZStream with the playlist, and configure a fallback mountpoint for when the stream gets killed. Next, cron a perl script that checks (somehow) what's being played by EZStream, if it matches the first file in the playlist, then simply cat icecast.pid > kill. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Sep 12, 2006 6:20 am Post subject: |
|
|
| Hmm, I'd not want an abrupt cut of the stream but rather it just end after the song is over. My guess is we'll have to do this with scripting with Ices. I'm amazed there isn't a more developed piece of software to do this that wouldn't require us to know Perl or other scripting software to get the job done :/ |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Sep 18, 2006 8:09 pm Post subject: |
|
|
i changed two lines in ezstream.c an now ezstream doesn't repeat the playlist:
| Code: |
// LINE 663
while (1) { // <- remove this line
if (!strrcmp(pezConfig->fileName, ".m3u")) {
streamPlaylist(shout, pezConfig->fileName);
}
else {
streamFile(shout, pezConfig->fileName);
}
} // <- remove this line
|
and compile it  |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Sep 18, 2006 8:10 pm Post subject: |
|
|
| Wow thanks. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Jun 23, 2008 3:04 pm Post subject: |
|
|
can You tell me, how to do that with ices for mp3?
Regards! |
|
| Back to top |
|
 |
|