Cartwall + Playlist empty after mAirlist crashed

Our installation (6.1.11 on Windows 10) seems to be non-reactive from time to time. When we end the task through the Windows 10 dialogue and restart mAirlist, Playlist and Cartwall seems to be empty.

Of course we will get to the bottom of the freezing issue.

But as every software tends to crash from time to time: Can define defaults, so that the playlist and the cartwall content are loaded automatically when mAirlist (re-)starts?

Greets: Mateng / 674FM

There is a “Save as default” command in the Save menus of both the playlist and cartwall.

@Torben: Could you trigger this via some script?

Safe regards

TSD

You mean that the current content is saved (and restored after a restart)? Or just some defaults?

The current content should be stored automatically, say, with every OnItemStart, so that on cold start after some crash the situation before can be restored.

Cautious regards

TSD

You could just call CurrentPlaylist.ContentSaveDefault in a timer or so.

1 Like

Great! So @Matengor, if you register this code

procedure OnPlayerStart(PlaylistIndex: integer; PlayerIndex: integer; Item: IPlaylistItem);
begin
  CurrentPlaylist.ContentSaveDefault
end;

procedure OnCartwallPlayerStart(PlayerIndex: integer; Item: IAudioCartwallItem; PlaylistItem: IPlaylistItem);
begin
  CurrentPlaylist.ContentSaveDefault
end;

begin
end.

as a background script, with any start of a player the current playlist is saved and recalled on program start. (As the cartwall content is of non-dynamic nature normally, it would suffice to set it to default only once.) This makes mAirList to continue from the point it stopped (or crashed, or had been scrammed …).

Rescued regards

TSD

#@%$!! Forgot the semikola! It must read:

procedure OnPlayerStart(PlaylistIndex: integer; PlayerIndex: integer; Item: IPlaylistItem);
begin
  CurrentPlaylist.ContentSaveDefault;
end;

procedure OnCartwallPlayerStart(PlayerIndex: integer; Item: IAudioCartwallItem; PlaylistItem: IPlaylistItem);
begin
  CurrentPlaylist.ContentSaveDefault;
end;

begin
end.

But, as a comfort, it happens to work anyway. (At least on my system.)

Oblivious regards

TSD


Sorry for the expletive.

1 Like

Hey everybody - thanks a lot for those hints. I will try them in a few days and get back to you.