Here is an example panel that one of our trainers put together (Tony).
<abs contexttype="opengear" id="_top" keepalive="false" virtualheight="921" virtualwidth="1631">
<button buttontype="push" height="171" left="314" name="VDCP DEBUG CHANNEL TIMECODE" top="295" width="572">
<task tasktype="ogscript">function callback(success, cmd, result, exception)
{
if (success)
{
var timecode = result.getClipPositionAsString();
ogscript.debug(timecode);
}
}
var ip = '10.80.1.225';
var port = 8000;
var channel = 1;
vdcp.activeClipInfo(ip, port, channel, callback);</task>
</button>
</abs>
You'll have to change the IP and port (I think 8000 is channel A, 8001 is B, etc).
Once you have the activeClipInfo, you can get do the following calls:
- getClipDuration()
- getClipDurationAsString()
- getClipID
- getClipPosition()
- getClipPositionAsString()
The ones that get time (not as strings) are returning milliseconds I beleive.
#DashBoard