How to stop your source/turn off your button when the file has ended?
â get the latest snapshot/ version of MmAirlist
â set the axum remote ( in mAirlist control panel > remotes)
â create a âmairlistâ node in the axum envoronment.
(this is all in the setup for het axum/mambanet remote)
Then:
create a .MLS file with the following script, and load this file in âbackground filesâ in the âcontrol panelâ of mairlist.
// Stop players a/b en jingle 1,2,3,4
procedure OnPlayerStop(PlaylistIndex: integer; PlayerIndex: integer; Duration: TTimeValue; Item: IPlaylistItem);
var i : integer;
begin
if (PlaylistIndex= 0) and (PlayerIndex= 0) and (CurrentPlaybackControl.GetAutomation = false) then begin
MambaNetRemote(0).SetSensor(1, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(1, false);
end;
if (PlaylistIndex= 0) and (PlayerIndex= 1) and (CurrentPlaybackControl.GetAutomation = false) then begin
MambaNetRemote(0).SetSensor(2, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(2, false);
end;
if (PlaylistIndex= 1) and (PlayerIndex= 0) then begin
MambaNetRemote(0).SetSensor(3, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(3, false);
end;
if (PlaylistIndex= 2) and (PlayerIndex= 0) then begin
MambaNetRemote(0).SetSensor(4, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(4, false);
end;
if (PlaylistIndex= 3) and (PlayerIndex= 0) then begin
MambaNetRemote(0).SetSensor(5, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(5, false);
end;
if (PlaylistIndex= 4) and (PlayerIndex= 0) then begin
MambaNetRemote(0).SetSensor(6, true);
for i := 1 to 500 do;
Sleep(500);
MambaNetRemote(0).SetSensor(6, false);
end;
end;
begin
end.
In the axum envorinment, under âSurface configurationâ > âMairlistâ node
Set sensors to stop the source.
Sensor1 S [Player A: Stop]
Sensor2 S [Player B: Stop]
Sensor3 S [Jingle1: Stop]
Sensor4 S [Jingle2: Stop]
etc.
! Select the source name you have choosen for your players.
! Be sure you use âstart/stopâ for your buttons, not module on.
in your surface settings of your âmixing surfacesâ.
example: Switch 6.4 S + A 0 Module 6: Source start/stop