×
Menu

AVP Protocol Commands


To begin communicating with Legion from an external controller, first go to Global Settings and enable the UDP listener. After which the listener will begin immediately waiting for command strings on the default port number ‘7000’
 
 
 
NOTE: If you find that port 7000 conflicts with other software apps running on the same computer, you can go ahead and change it using the "Port Number" selection control. Once you have completed the change the port will automatically refresh itself and begin listening on the newly assigned port.
 

The control protocol is in simple ASCII text strings and is not case sensitive. I do, however, use case formatting in the following explanations simply to reflect clean document formatting.
 
Every command string needs to start with the prefix “AVP”, followed by '-1' encased between two pipe characters “|” .
Example: AVP|-1|
 
Following the opening character string, proceed immediately with the command string. Some commands require an additional integer value. Separate the command name and the number value with a comma “,”.
 
NOTE: If your choosen control software removes commas from all command strings (e.g Universe V3) you can replace the use of a comma with a space " " instead.
 
Load clip to standby: ‘LoadClip’ + ‘,’ + ## (asset ID)
NOTE: Asset ID is whatever is currently appearing in the asset's ID column. 
Complete example loading asset whose ID is '03': AVP|-1|LoadClip,03
 
Start playing program: ‘PgmStart’ + ‘,’ + ## (asset ID)
Set asset ID to ‘-1’ to start the clip currently sitting in standby.
Or if you use a legitimate asset ID this command load asset and take it straight to program, bypassing the ‘LoadClip’ function.
Note: There may be a slight delay when taking a clip straight to program. This is due to the fact that it must still be placed into standby first before it is executed to program.   
Example to play asset currently in preview: AVP|-1|PgmStart,-1
Example to load asset with ID '2A' and take it straight to program: AVP|-1|PgmStart,2A
 
Stop program: ‘PgmStop’
Complete example to stop clip: AVP|-1|PgmStop
 
Pause program: PgmPause’
Complete example to stop clip: AVP|-1|PgmPause
Note: The pause command is a toggle, simply send the command again to resume program play.
 
Play / Stop asset as relative: ‘RelativeStart’ + ‘,’ + ## (asset ID)
This command will instruct an asset to play independently on top of any other asset that may be playing. All asset trims, loop & hold properties will apply.
Since this toggles between play and stop send this same command to end play. 
You must use a legitimate asset ID.
Example relative playing clip ID '2A' straight to program: AVP|-1|RelativeStart,2A
 
Pause relative asset: ‘RelativePause’ + ‘,’ + ## (asset ID)
To pause an asset that is running as relative. 
You must use a legitimate asset ID.
Example stopping relative play of clip ID '2A' straight to program: AVP|-1|RelativePause,2A
 
Playing an overlay asset: ‘PlayOverlay’ + ‘,’ + # (1 or 2)
Set the operational flag to either ‘1’ or '2' in order to start that corresponding overlay.
Note: This command can also be used a toggle between pause and play, simply send the command again to flip between the two states.
Example to play overlay 1: AVP|-1|PlayOverlay,1
 
Stop overlay: ‘StopOverlay’ + ‘,’ + # (1 or 2)
Complete example to stop overlay 1: AVP|-1|StopOverlay,1
 
Warning: Overlay commands only work when the underlaying asset that has overlays assigned to it is currently playing in program. Any other time the commands are ignored.
 
Fast forward clip: ‘FForward’
Set the operational flag to the desired faster then normal speed.
The range of speed  is entered as an integer value between 1000 to 4000. (1000 = normal and 4000 = 4X faster)
To end the fast forward and resume normal play speed then set flag to '0'
Complete example to start fast forward on the currently selected clip to 3.5X speed: AVP|-1|FForward,3500
To end fast forward on the currently selected clip: AVP|-1|FForward,0
 
Rewind clip: ‘Rewind’
Set the operational flag to activate or deactivate rewind. (1 = On , 0 = Off)
Complete example to begin rewind of the currently selected clip: AVP|-1|Rewind,1
To end and resume nomal play: AVP|-1|Rewind,0
Note: The pause command is a toggle, simply send the command again to resume play.
 
Set current position: ‘SetPosition’ + ‘,’ + *timecode
*The current position is formatted as a timecode string (‘hh:mm:ss:ff’.)
Complete example to set clip position to 30 seconds and 12 frames: AVP|-1|SetPosition,00:00:30:12
 
Advance to time out: ‘GotoTimeOut’ + ‘,’ + ## (operational flag)
Set the operational flag using numbers 1 to 4 (1=60sec, 2=30sec, 3= 20sec, 4=10sec)
Complete example to advance to 10 seconds out: AVP|-1|GotoTimeOut,4
 
Load Background: ‘LoadBG’ + ‘,’ + ## (index)
Set desired background index to the actual position the file appears in the background menu. (0 = Black)
Complete example to display background 3: AVP|-1|LoadBG,3
 
Next Background: ‘NextBG’
Use to simply display the next background in the list.
Complete example to stop overlay 1: AVP|-1|NextBG
 
Previous Background: ‘PreviousBG’
Use to simply display the previous background in the list.
Complete example to stop overlay 1: AVP|-1|PreviousBG
 
Advance to next tag: ‘NextClip’
Complete example to select the next clip: AVP|-1|NextClip
 
Go back to previous tag: ‘PrevClip’
Complete example to select the previous clip: AVP|-1|PrevClip
 
Advance to next tag: ‘NextTag’
Complete example to advance to next tag marker: AVP|-1|NextTag
 
Go back to previous tag: ‘PrevTag’
Complete example to advance to the previous tag marker: AVP|1|PrevTag
 
Enable Temp Hold: ‘TmpHold’
Complete example to togle the temp hold: AVP|-1| TmpHold
Note: The command is a toggle, simply send the command again to disable.
 
Enable Temp Loop: ‘TmpLoop’
Complete example to togle the temp looping: AVP|-1| TmpLoop
Note: The command is a toggle, simply send the command again to disable.
 
Mute PGM Audio: ‘Mute’
Complete example to toggle mute: AVP|1| Mute
Note: The mute command is a toggle, simply send the command again to unmute.
 
Clear All Selected: ‘Clear’
Complete example to clear all selected: AVP|1| Clear
 
Hide Program Output: ‘HidePGM’
Complete example to toggle between whether program output is visible or not: AVP|-1| HidePGM
 
Enable Auto Start: ‘AutoStart’
Complete example to togle the auto start feature: AVP|-1| AutoStart
Note: The command is a toggle, simply send the command again to disable.

SEE ALSO