Control a video router with OnTheAir Video 4

(This feature is only available in OnTheAir Video, not in OnTheAir Video Express).

With OnTheAir Video, we have added the ability to control video routers directly in OnTheAir Video. Previously it required to install an application called OnTheAir Switch, but not anymore.

The compatible routers are:

  • Blackmagic Videohub
  • Ross

For other routers, you can still use OnTheAir Switch, check compatibility here.

 

How to set it up?

There is no preference to add in OnTheAir Video, but just add an Action (AppleScript) to the "Actions" folder of OnTheAir Video 4.

The Actions folder is located in:

/Library/Application Support/Softron/OnTheAir Video/com.softronmedia.OnTheAirVideo/Actions/

Attached to this article are 2 sample actions that you can use.

 

Blackmagic Videohub

There are 2 different syntaxes possible. You can use one or the other.

Using "switch Videohub" method

on Action(parameter)
tell application “OnTheAir Video”
-- by IP address
switch videohub ip_address “192.168.0.70" output_index 1 input_index 1
-- by Name
switch videohub name “Studio Videohub 12” output_index 1 input_index 1
-- by Unique ID
switch videohub unique_id “8371c4cc399b” output_index 1 input_index 1
end tell
end Action

 

Using the set selected input method 

Here is an example of script that can be used to control a Videohub. If you only have one Videohub, you could use:

on Action(parameter)
tell application "OnTheAir Video"
tell (first videohub device)
set selected input of output 3 to 4
end tell
end tell
end Action

There is nothing to do in OnTheAir Video as it will automatically scan the network to discover a Videohub through Bonjour. So in the example above, we will search for the first available Videohub and use it.

You could change the script to only use a Videohub with a specific IP address.

on Action(parameter)
tell application "OnTheAir Video"
tell (first videohub device whose ip_address is "192.168.0.70")
set selected input of output 3 to 4
end tell
end tell
end Action

 

Or using its name:

on Action(parameter)
tell application "OnTheAir Video"
tell (first videohub device whose name is "Studio Videohub")
set selected input of output 3 to 4
end tell
end tell
end Action

 

Ross

With Ross, you just need to indicate the IP address of the Ross video router. And then specify which "command" (which GPI) you want it to execute. Check your Ross manual to know how to modify those GPI.

on Action(parameter)
tell application "OnTheAir Video"
switch rosstalk ip_address "127.0.0.1" command "GPI 04"
end tell
end Action

 

Have more questions? Submit a request

Comments