Hello friends, some years after
We have an xpression 12.5 estudio, we use with NDI, 2 outputs
Now we want to use and ndi input , we already set and NDI but we dont have a drop down menu where we can select which ndi signal we will use
any idea how to set up?
------------------------------
Alonso Valdivia
Technical support
Willax Tv
------------------------------
Original Message:
Sent: 04-27-2020 17:07
From: James Peltzer
Subject: NDI Variable Input
Hi Al
You're quite close - what you want to use is setSource(source name);
Here is an example panel that queries for sources, puts them in a list, and allows you to select:
<abs contexttype="opengear">
<meta>
<params>
<param access="1" constrainttype="STRING_CHOICE" maxlength="0" name="NDI Sources" oid="ndi.sources" stateless="true" type="STRING" value="NONE" widget="list">
<constraint>NONE</constraint>
</param>
</params>
</meta>
<borderlayout bottom="0" left="0" right="0" top="0">
<borderlayout anchor="west" width="200">
<param anchor="center" bottom="58" expand="true" left="2" oid="ndi.sources" right="3" scrolling="vertical" showlabel="false" top="5">
<task tasktype="ogscript">var ndiWindow = ogscript.getComponentsById('ndi-window')[0];
ndiWindow.setSource(this.getValue());</task>
</param>
<button anchor="south" bottom="6" buttontype="push" height="80" left="3" name="Load List" right="2">
<task tasktype="ogscript">var ndiWindow = ogscript.getComponentsById('ndi-window')[0];
var sourceNames = ndiWindow.getNDISourceNames();
ogscript.debug("FOUND" + sourceNames.length);
var c = params.createStringChoiceConstraint(sourceNames);
params.replaceConstraint('ndi.sources', c);</task>
</button>
</borderlayout>
<ndi anchor="center" fill="fit" id="ndi-window" quality="high" showname="true" srcname="BIRDDOG-DB (SDI)" style="bg#dark;bdr:etched;"/>
</borderlayout>
</abs>
#DashBoard