logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
richardgatarski  
#1 Posted : Saturday, November 29, 2014 4:45:00 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,837
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?
thanks 1 user thanked richardgatarski for this useful post.
madness on 11/30/2014(UTC)
doyousee.me  
#2 Posted : Saturday, November 29, 2014 12:19:58 PM(UTC)
doyousee.me

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
madness  
#3 Posted : Sunday, November 30, 2014 5:22:43 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
I agree also!
thomas  
#4 Posted : Wednesday, March 4, 2015 11:56:07 AM(UTC)
thomas

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?

wwdv  
#5 Posted : Sunday, May 3, 2015 9:33:57 AM(UTC)
wwdv

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)
+1
zenon  
#6 Posted : Thursday, May 14, 2015 1:20:57 AM(UTC)
zenon

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 !
zenon  
#7 Posted : Tuesday, September 8, 2015 5:37:34 AM(UTC)
zenon

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
thanks 1 user thanked zenon for this useful post.
Kaf on 11/8/2016(UTC)
pm  
#8 Posted : Thursday, February 25, 2016 4:37:09 PM(UTC)
pm

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
pm  
#9 Posted : Thursday, February 25, 2016 5:30:21 PM(UTC)
pm

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
Users browsing this topic
Guest
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.