Put one of the time announcements in the hour template. Set and change the filename there to Variables %h%m for the filename .
mAirlist will then search for a file that has the name corresponding to the set variable (in this case: hour and minute) when mAirlist loads the player, so if this element is played 11:13 it will look for (i.e.) announcement_1113.mp3
!! It’s important to activate the variable-replacement in the settings of the element !!
You can read more about it in this (german) Thread:
Drag & Drop one example item from your windows explorer (!) into the Listing window:
Double-click the item to open the preferences, go to the tab “Audio File”
Change parts of the filename to the variables you’ll use to name your different announcements. You can find a list of variables here .
This step is crucial (!): In the “Playback” tab check the mark for “Expand variables in URL/filenames”. Otherwise mAirlist will ignore the variables and instead look for the exact filename found in the Filename/URL-settings.
Check the other settings in this tab to your liking (i.e. “Automatically redo normalization every time the file is opened”)
Save your settings and save the Dialog for the external Item
Note: This function has big potential and doesn’t end with time announcements. You could do an hour template for a specific pre-produced show, that your contributors load into an ftp directory, and let mAirlist look for the date of the show in the filename (i.e. ThatCoolShow_221008_1800).
This hour template could be saved for specific days of the week so the external shows would be planned and played automatically by mAirlist that day and hour.
Of course, that requires exact filenames and therefore a lot of discipline by the contributors / external DJs.
Salut à tous j’ai peut être une astuce plus simple.
au lieux de faire avec un spécifique item tu peux le faire avec un Ramdom item from folder, et sur chaque fichier tu vas dans programmer et tu lui spécifie son heure et son jour de passage.
Ce system te permettra d’utilise le Template à des heures différente.
Hey Stefan, I’m very happy that you helped me with a brilliant guide.
Well, yesterday, I noticed, that my watch and the clock on computer was 21:13, however mAirlist played the file “Time_21:11.wav” Two minutes too late. Today I tested it again, Sometimes the “time announcement” is behind the computers clock. Not always. Sometimes its correct.
Could it be, if I in the playlist jump with the “forward button” or the playlist cant find a file or something like that…
AFAIK the variable is processed when the player is loading the file and not when you jump to next elements in the playlist and change the planned time.
So it may help to set your players to load on demand and not automatically after the last song was played and the player is empty…?
Hej Stefan,
I do have checked “Auto load on demand now”
It does the same.
It loads 3 tracks/items
Lets say the music item is 5 minutes. It starts 21:15
The time anouncement comes after the music 21:20
The time-wav-file is loaded (with green check mark) while the music runs
After ending the musi-track mAirlist then will play “Its a quarter past ten” becuase the variable is processed when the file is loaded in cache?
It didnt help setting the players to load on demand… Hm…
I don’t know if it would help to check to „not buffer“ the element before loading in the element’s properties?
Of course this would prevent mAirlist from loading it in the cache too early. It sounds logical to me that mAirlist can’t pre-buffer a file and then loading another file when processing the variables on player load
I need to test it for myself, sorry. Maybe tomorrow…