Show/Hide hidden text
This chapter gives an overview of the events that are raised by a Blackmagic VideoHub device and that can be used in Event Listener or Group Event Listener.
Please read the chapters Blackmagic VideoHub and Event Listener or Group Event Listener if you would like to know how to add and use both. The available members that can be used in our scripting language are explained in the chapter "Blackmagic VideoHub Members".
Example:
Label1.Text = isConnected
This event is raised whenever the connection state changes from disconnected to connected or vice versa.
The event returns one parameter to WD which is Boolean value with the name "isConnected" and holds either "true" or "false".
If you select this event and copy the example into a scripting field of Event Listener or Group Event Listener, it will write "true" or "false" into the Label with ID 1 whenever the device connects or disconnects.
|
Example:
Label1.Text = MessageReceived
This event is raised whenever the connected device sends a message.
The event returns one parameter to WD which is a string value with the name "MessageReceived" and holds the message.
If you select this event and copy the example into the scripting field of the Event Listener or Group Event Listener, it will write the message into the Label with ID 1 whenever the device sends one.
|
Example:
var OutputNumber = Output
var InputNumber = Input
This event is triggered when input/output routing has been performed in the VideoHub.
The event returns two parameters to WD which are integer with the name "Output" and "Input". These two parameters hold the number of Output and Input which were newly connected.
If you select this event and copy the example into the scripting field of the Event Listener or Group Event Listener, it will write the number of newly connected Output and Input into the variable OutputNumber and InputNumber whenever the routing on the VideoHub is changed.
|
Example:
Label1.Text = "The name of the input number " + Input + " has changed to " + Label + "."
This event is raised whenever the name of an input is changed.
If you select this event and copy the example into the scripting field of the Event Listener, it will write the following in the Label with ID 1, according to your IDs and names:
The name of the input number '1' has changed to 'HDMI_1'.
|
Example:
Label1.Text = "The name of the output number " + Output + " has changed to " + Label + "."
This event is raised whenever the name of an output is changed.
If you select this event and copy the example into the scripting field of the Event Listener, it will write the following in the Label with ID 1, according to your IDs and names:
The name of the Output number '1' has changed to 'Out_1'.
|