DYNAMIC LOADING OF FILES #4543
Replies: 5 comments 2 replies
-
As I've already showed in your other thread:
Will reload your playlist at 20:00. |
Beta Was this translation helpful? Give feedback.
-
Yes, Stefan, my apologies...I was so absorbed in trying to get reload to work that I'd forgotten your earlier message in this area. Thanks again and apologies; I'm off to do more testing today. Richard Bartholomew |
Beta Was this translation helpful? Give feedback.
-
Hi, Following on from your suggestion, below is an extract of a script I've been testing with and have been getting some unexpected results. Any thoughts on why this is happening would be appreciated. FlashbackYears is a single audio file lasting a few seconds over one hour. After FlashbackYears ends at 13:30, I replace the file with a new one of the same name. When FlashbackYears starts playing at 14:00, it starts with the last few seconds of the show which stopped at 13:30 and, after that, starts replaying the show which ran from 12:30-13:30 rather than the new file which was put in place. thread.when(predicate.activates({ 3w and 12h30m00s }), fun() -> FlashbackYears.reload()) radio=mksafe(switch(track_sensitive=false, [ radio=mksafe(crossfade(rotate(weights=[4, 1], [radio, jingles]))) |
Beta Was this translation helpful? Give feedback.
-
Hi, That has fixed the problem and, on reflection, should have been an obvious thing to do! An observation only since, in real life, it wouldn't happen but is present when trying to test. I started a one-hour single file named FlashbackYears.mp3 at 13:30 and ran it for 10 minutes only. At 13:45 I replaced FlashbackYears.mp3 with another file of the same length and name and it was reloaded using thread.. at 13:55. However, when this file started playing at 14:00, the file which was started at 13:30 was played but from the point where it was stopped at 13:40! As I said, wouldn't happen in real life but was trying to speed up testing! Thanks for all help. Richard Bartholomew |
Beta Was this translation helpful? Give feedback.
-
Thanks, Stefan, that has done the trick! I'll now be running it on my test server for a couple of weeks to replicate our normal weekly schedule. Still got more work to do on the compression side of things but that's for another time and place! Thanks for all your help. Richard Bartholomew |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
autodjextract.txt
Our radio station has a mixture of live shows, randomly generated playlists and pre-recorded shows. We wish to have central control over the compression of all audio sources so are now intending to use Liquidsoap for all aspects of our broadcasting...up until now, our live shows connected directly to Icecast and Liquidsoap was left running on a fallback mount point for when there were no live shows.
In order that a new pre-recorded show was loaded into Liquidsoap, the script was restarted daily. However, if we want to stream our live shows via Liquidsoap, we can't do this any longer since the restart process would interrupt a live show.
Therefore, is there a way to dynamically reload a file at a pre-determined time so that a script restart is not needed? I have been trying reload_mode="watch" and reload= but have had no success with either of these.
I've attached an extract from the script file showing what currently happens (note that there is no compression on the pre-recorded shows as they are recorded with compression already applied).
Is it possible to do what I want, please, and, if so, any pointers would, as always, be very helpful.
Thanks for any help.
Richard Bartholomew
Beta Was this translation helpful? Give feedback.
All reactions