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
fluozh  
#1 Posted : Tuesday, December 24, 2024 3:27:37 AM(UTC)
fluozh

Rank: Advanced Member

Groups: Registered
Joined: 3/18/2021(UTC)
Posts: 34
Man
Japan
Location: Tokyo

Thanks: 10 times
Was thanked: 5 time(s) in 5 post(s)
Hello, I'm currently developing Arduono-based controller surface with TCP API.
I wanted to use Input's key for my system but TCP API does not support them so I'm using Input number instead.
But current SUBSCRIBE ACTS command does not send when user closes/adds/moves order of inputs. So my system can't keep target input in tracked.

Can we have Activator event for detecting input add/close/reorder(move) ?
Thank you so much!

(btw I will publish my controller/tally system once it's ready to work:) )
nikosman88  
#2 Posted : Tuesday, December 24, 2024 5:00:31 AM(UTC)
nikosman88

Rank: Advanced Member

Groups: Registered
Joined: 12/24/2021(UTC)
Posts: 567
Greece
Location: athens

Thanks: 138 times
Was thanked: 78 time(s) in 74 post(s)
Hi. When you say "input key" you mean the "input key="" we see in the API XML file? Î’ecause if yes i see that the companion bitfocus module that work via the TCP API can accept the input key in the action or the feedback as variable.
Dist  
#3 Posted : Thursday, December 26, 2024 11:17:36 PM(UTC)
Dist

Rank: Advanced Member

Groups: Registered
Joined: 12/19/2019(UTC)
Posts: 54
United Kingdom

Was thanked: 26 time(s) in 18 post(s)
As mentioned by Nikosman88, the TCP API does support referencing inputs by Key, as well as by Name or Number, (with preference to Key/Number over Name in situations where an inputs name IS a number or key).

Separate to that though, if for some reason you still need to know when input order changes you could still just poll the XML data and check for changes, which is how Companion handles things like input order being changed and needing to update values.
fluozh  
#4 Posted : Sunday, December 29, 2024 12:45:08 AM(UTC)
fluozh

Rank: Advanced Member

Groups: Registered
Joined: 3/18/2021(UTC)
Posts: 34
Man
Japan
Location: Tokyo

Thanks: 10 times
Was thanked: 5 time(s) in 5 post(s)
Thanks you two.

TCP API supports receiving key as Input, but it does not support sending input key in SUBSCRIBE ACTS command.
It sends input number instead (ACTS OK InputPreview 1).

I was thinking to solve key by using XMLPATH or XML API but it'd be messy and cause issue on asyncronous system since it always needs to keep input number to it's key binded.
my system should to following steps to make it sync'd:

1. Receive acts(input is number).
2. Call XML or XMLPATH API by input number.
3. Receive XML/XMLPATH response to solve key.
4. Use key for task.

I do not think it is recommended way to do since TCP API recommends asynchronous operation:

https://www.vmix.com/help27/TCPAPI.html

Quote:

Events


Events are responses that can be sent at any time to the client in response to state changes.

All clients should be written to handle any response at any time, as these may be received in the middle of sending a command but before

receiving that particular commands response. Therefore it is recommended clients operate "asynchronously" without waiting for a particular command response.
Users browsing this topic
Guest (3)
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.