On Sun, Feb 28, 2010 at 1:22 PM, Nick Coons <[email protected]> wrote: > I would like to create "commercials" as a playlist that is generated > from a script, and regenerated each time it's queued up to be played. > The script will be responsible for returning the correct number of MP3s > to make sure that it fits the 2m or 4m window provided. This particular > aspect would be very important, since these will change every single > time they're played.
You should be able to use the reload facility of the normal playlist() operator for that. > Obviously "stream1" and "stream2" are just examples, and no stream will > run for that long (a stream will typically run from 1h to 3h, but is > subject to change, and ideally I'd be able to change this without > restarting liquidsoap. This is less important than the dynamic > commercial generation since it won't change as frequently, and I could > live with restarting liquidsoap if I had to because my front-end > Icecast2 server has a fallback so I wouldn't drop listeners. Here you could go with a switch that uses a complex switching predicate like I presented in other mails. Start with an external script, but you might want to use references (interactive.string() except on SVN) for faster execution. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
