To complete the "write the script" approach, here are details on where
liquidsoap can help you:

2010/1/28 Spack <spack.wo...@gmail.com>:
> 1. Be able at any time to tell liquidsoap that I want song S to be played
> next.

You can use a request.queue() or request.equeue().

> 2. Be able to know exactly when song S will be played (which time, day,
> etc...)

You should tweak the queue parameters, in particular "conservative",
"length" and "default_duration". They are detailed in the main
documentation and in the help of each operator (e.g. liquidsoap -h
request.dynamic).

If this is not enough you can also use track_sensitive=false switches
to play something NOW.

> 3. Manage song rotation, song S must be played X times in a day.

No help there.

> 4. Play a jingle after X songs.

Look at rotate(). But this might interfere with other constraints, e.g., (2).

> 5. Associate a jingle with a particular song.

You can use prepend() for that effect, combined with metadata-based
information, but there are tricky details, notably the jingle should
be ready in advance.

> 6. Associate a score to the songs and the one with the highest score will be
> played more often.

No help.

> 7. ...

Keep in mind that when I indicated a solution within liquidsoap it
does not mean that it's easier than to implement it in your script.

Cheers,

David

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to