I tried to use as an example the lesson available on dashoardU (PanelBuilder304), which was an application developed to control a remote blackmagic player server.
When I hit on 'play button', I can see the program lines, and there I found this commands:
<button buttontype="push" colspan="1" fill="both" insets="2,2,2,2" left="47" name="<html>&#x25b6;</html>" pheight="131" pwidth="209" rowspan="1" style="style:Transport;size:Biggest;" top="38" weightx="1.0" weighty="1.0">
<task tasktype="rosstalk">rosstalk.sendMessage(params.getValue(0x9, 0), parseInt(ogscript.getPrivateString('hosts', 'BlackmagicDeck1.port')), ' play: single clip: true');</task>
<task tasktype="ogparamset">params.setValue(0x5, 0, 0);</task>
<task tasktype="ogparamset">params.setValue(0x4, 0, 0);</task>
</button>
I guess my idea seems alike it, because I want to use the play button to starts my video. But I know it isn't possible to copy this code, because I can't use the same commands.
e.g: rosstalk -> In ogScript, use the rosstalk object to communicate over the network to other devices that speak RossTalk protocol. that isn't my case.
e.g: parseInt -> Is used to send a message to a particular host/port. That isn't my case too.
I'd like to know if has any code resposible for play action? I read all the ogscript manual, but I didn't find nothing about it.
Thanks,
#DashBoard