vMix Forums
»
General
»
Feature Requests
»
Expand TCP API with subscription model for changes to XMLTEXT
Rank: Advanced Member
Groups: Registered
Joined: 5/19/2017(UTC) Posts: 83 Location: The Netherlands Thanks: 12 times Was thanked: 34 time(s) in 22 post(s)
|
Hello, I'm the maintainer of the vMix M5Stick Tally Light repo on GitHub. I would love to add a feature to the stick that allows the Camera Operator to know whether vMix is Streaming or Recording. However, to do this, I need to poll the TCP XMLTEXT API every x seconds to see if there are any changes. Could you add a subscription model to the XMLTEXT API? Example: Code:Request: SUBSCRIBE XMLTEXT vmix/recording
Return: XMLTEXT OK 0
When the status changes, the subscription would return XMLTEXT OK 1 That would be very efficient and would not force me to use a polling mechanism. Would love to see this implemented :)
|
1 user thanked guidogast for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/19/2015(UTC) Posts: 30 Location: Netherlands Thanks: 1 times Was thanked: 3 time(s) in 3 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/10/2020(UTC) Posts: 34 Thanks: 12 times Was thanked: 4 time(s) in 3 post(s)
|
Originally Posted by: guidogast Hello, I'm the maintainer of the vMix M5Stick Tally Light repo on GitHub. I would love to add a feature to the stick that allows the Camera Operator to know whether vMix is Streaming or Recording. However, to do this, I need to poll the TCP XMLTEXT API every x seconds to see if there are any changes. Could you add a subscription model to the XMLTEXT API? Have you tried It will return Code:ACTS OK Recording 0
ACTS OK Recording 1
ACTS OK Streaming 0
ACTS OK Streaming 1
ACTS OK MultiCorder 1
ACTS OK MultiCorder 0
It's more accurate than reading XMLTEXT every X seconds, but because ACTS return events for everything, I don't know what is better. Of course you have to use XMLTEXT once to check status on startup.
|
1 user thanked tsioukas for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/19/2017(UTC) Posts: 83 Location: The Netherlands Thanks: 12 times Was thanked: 34 time(s) in 22 post(s)
|
Originally Posted by: tsioukas Originally Posted by: guidogast Hello, I'm the maintainer of the vMix M5Stick Tally Light repo on GitHub. I would love to add a feature to the stick that allows the Camera Operator to know whether vMix is Streaming or Recording. However, to do this, I need to poll the TCP XMLTEXT API every x seconds to see if there are any changes. Could you add a subscription model to the XMLTEXT API? Have you tried It will return Code:ACTS OK Recording 0
ACTS OK Recording 1
ACTS OK Streaming 0
ACTS OK Streaming 1
ACTS OK MultiCorder 1
ACTS OK MultiCorder 0
It's more accurate than reading XMLTEXT every X seconds, but because ACTS return events for everything, I don't know what is better. Of course you have to use XMLTEXT once to check status on startup. Thanks! I did try ACTS, but didn't seem to do what I wanted at first glance. Will take a look at it again sometime soon. This could solve the issue.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 4/19/2020(UTC) Posts: 7
|
This would still be very helpful. Similar to OP I have a tally light program for the M5Stack Core2 which also displays the input title. When loading vMix my program can connect to the API before vMix has finished opening and configuring the inputs per the loaded .vmix file. As such I will get an input name of BLANK (the default 1st and second input title) before the correct name is even available. At the very least it would be nice to see a handful of the more major pieces of info available without polling.
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
Expand TCP API with subscription model for changes to XMLTEXT
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