icecastliquidsoap

Is it possible to schedule a Liquidsoap source at a specific date and time?


I'd attempting to schedule a liquidsoap streaming source to be played at a specific date and time in the future. I believe this can be accomplished using the Liquidsoap switch command but I'm having trouble understanding the documentation for it described here: http://liquidsoap.fm/doc-1.2.0/reference.html#switch

Is this possible using liquidsoap? I'd be nice if I could simply pass a timestamp.


Solution

  • I'm not sure you can pass an absolute timestamp to switch, you can pass a time of day or week. See the "Time Intervals" section: https://www.liquidsoap.info/doc-1.4.0/language.html#time-intervals

    I think your best bet is using a playlist file that is rewritten via cron, or using request.dynamic with a custom external script that determines what to play based on the time.

    See the documentation for playlist here: https://www.liquidsoap.info/doc-1.4.0/reference.html#playlist