vMix Forums
»
General
»
Feature Requests
»
API Specify InputName in addition to Input Number and GUID
Rank: Advanced Member
Groups: Registered
Joined: 2/18/2014(UTC) Posts: 1,838 Location: Stockholm
Thanks: 144 times Was thanked: 297 time(s) in 250 post(s)
|
Currently (v 14.0.0.102) vMix's API support two methods to specify which Input to use. First is by Input number (which varies depending on its position on the screen) and GUID, which requires extra programming to poll the key with a "blank" API call. In some instances, eg using X-key Macro keypads, the latter is impossible. Therefore it would be useful to also be able to specify the Input's name, for example http://127.0.0.1:8088/API/?Function=SetText&InputTitle=NewsHD10.xaml&SelectedName=Headline&Value=Hello Maybe "SelectedTitle" is more consistent with "SelectedName". Or perhaps vMix could assume a name if it can't find either an Input with the number that matches the parameter or an input with a key that matches the parameter. In the case there are two Inputs with identical names, the first should be used (and it is up to the user to be aware of this limitation). In the case that special characters are part of the name they should be URL encoded. Anyone dis/agree?
|
1 user thanked richardgatarski for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/4/2012(UTC) Posts: 129 Location: the Netherlands
Was thanked: 10 time(s) in 10 post(s)
|
agree, would make building remote controls a few clicks easier (custom build remote control programs)
M@ik
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 Location: Iowa Thanks: 281 times Was thanked: 32 time(s) in 29 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/14/2014(UTC) Posts: 53 Location: Norway
Thanks: 17 times Was thanked: 5 time(s) in 4 post(s)
|
+1 - totally agree :) richardgatarski wrote:Currently (v 14.0.0.102) vMix's API support two methods to specify which Input to use. First is by Input number (which varies depending on its position on the screen) and GUID, which requires extra programming to poll the key with a "blank" API call. In some instances, eg using X-key Macro keypads, the latter is impossible. Therefore it would be useful to also be able to specify the Input's name, for example http://127.0.0.1:8088/API/?Function=SetText&InputTitle=NewsHD10.xaml&SelectedName=Headline&Value=Hello Maybe "SelectedTitle" is more consistent with "SelectedName". Or perhaps vMix could assume a name if it can't find either an Input with the number that matches the parameter or an input with a key that matches the parameter. In the case there are two Inputs with identical names, the first should be used (and it is up to the user to be aware of this limitation). In the case that special characters are part of the name they should be URL encoded. Anyone dis/agree?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/30/2013(UTC) Posts: 290 Location: The Netherlands
Thanks: 6 times Was thanked: 21 time(s) in 15 post(s)
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 9/2/2014(UTC) Posts: 18
Was thanked: 2 time(s) in 2 post(s)
|
I can only join this request, would be so easier to handle the API without taking care on the input posiiton !
|
|
|
|
Rank: Member
Groups: Registered
Joined: 9/2/2014(UTC) Posts: 18
Was thanked: 2 time(s) in 2 post(s)
|
Hello Martin, as now this feature is in the Vmix16.. it's really nice, just a point that I saw in an other post. When we use AddInput, you can use the &Input to give a GUID to an input, could it be possile to authorizes also a input name on creation. http://127.0.0.1:8088/api/?Function=AddInput&Value=Video|C:\TEMP\video.mp4&Input=MyVideoname So that on the creation we can define the Input name. so far I saw in post: http://forums.vmix.com/d....aspx?g=posts&t=1396 , api?function=AddInput&Value=video|test.avi&Input=bdd98cd8-c867-45cc-85be-f80bb34ce3c7 must work but now by using the Input name it would be nice to authorize the Name of an input and not only the GUID. Thx for your effort Dominique
|
1 user thanked zenon for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/28/2015(UTC) Posts: 184
Thanks: 10 times Was thanked: 32 time(s) in 27 post(s)
|
Hi all If I use InputTitle together with SetText function, the command is working. http://127.0.0.1:8088/API/?Function=SetText&InputTitle=NewsHD10.xaml&SelectedName=Headline&Value=Hello If I use InputTitle with OverlayInput1In function, always the preview input is activated as overlay. http://127.0.0.1:8088/API/?Function=OverlayInput1In&InputTitle=NewsHD10.xaml Is there someone who did something similar with success? Or is there a mistake from myside? Or could this be a bug? Thanks for your help! Regards Patrick
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/28/2015(UTC) Posts: 184
Thanks: 10 times Was thanked: 32 time(s) in 27 post(s)
|
OK, my mistake or my ignorance... :-) With OverlayInput functions you have to specify the input name with "Input", not with "InputTitle". http://127.0.0.1:8088/API/?Function=OverlayInput1In&Input=NewsHD10.xaml Regards
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
API Specify InputName in addition to Input Number and GUID
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close