Created
October 23, 2024 01:18
-
-
Save llamafilm/813699d54db0961766b5bc146b8750f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Qsys Text Controller to print a log message every time an AES67 or Atmos receiver input changes | |
Components=Component.GetComponents() | |
for _,v in pairs(Components) do | |
if v.Type == 'input_box' then | |
local rx = Component.New(v.Name) | |
rx['sdp.lan.a'].EventHandler = function(ctl) | |
print(v.Name .. ' SDP LAN A changed to ' .. ctl.String) | |
Log.Message(v.Name .. ' SDP LAN A changed to ' .. ctl.String) | |
end | |
rx['sdp.lan.b'].EventHandler = function(ctl) | |
print(v.Name .. ' SDP LAN B changed to ' .. ctl.String) | |
Log.Message(v.Name .. ' SDP LAN B changed to ' .. ctl.String) | |
end | |
rx['stream.name'].EventHandler = function(ctl) | |
print(v.Name .. ' Stream Name changed to ' .. ctl.String) | |
Log.Message(v.Name .. ' Stream Name changed to ' .. ctl.String) | |
end | |
rx['stream.details'].EventHandler = function(ctl) | |
print(v.Name .. ' Stream Details changed to ' .. ctl.String) | |
Log.Message(v.Name .. ' Stream Details changed to ' .. ctl.String) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment