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
guidogast  
#1 Posted : Tuesday, October 13, 2020 4:14:59 AM(UTC)
guidogast

Rank: Advanced Member

Groups: Registered
Joined: 5/19/2017(UTC)
Posts: 83
Man
Netherlands
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 :)
thanks 1 user thanked guidogast for this useful post.
mbomnda on 1/15/2021(UTC)
ovonder  
#2 Posted : Sunday, October 18, 2020 3:44:58 AM(UTC)
ovonder

Rank: Advanced Member

Groups: Registered
Joined: 11/19/2015(UTC)
Posts: 30
Man
Location: Netherlands

Thanks: 1 times
Was thanked: 3 time(s) in 3 post(s)
+1
tsioukas  
#3 Posted : Monday, October 19, 2020 4:53:43 PM(UTC)
tsioukas

Rank: Advanced Member

Groups: Registered
Joined: 7/10/2020(UTC)
Posts: 34
Man
Greece

Thanks: 12 times
Was thanked: 4 time(s) in 3 post(s)
Originally Posted by: guidogast Go to Quoted Post
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

Code:
SUBSCRIBE ACTS


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 1 user thanked tsioukas for this useful post.
guidogast on 10/19/2020(UTC)
guidogast  
#4 Posted : Monday, October 19, 2020 6:28:43 PM(UTC)
guidogast

Rank: Advanced Member

Groups: Registered
Joined: 5/19/2017(UTC)
Posts: 83
Man
Netherlands
Location: The Netherlands

Thanks: 12 times
Was thanked: 34 time(s) in 22 post(s)
Originally Posted by: tsioukas Go to Quoted Post
Originally Posted by: guidogast Go to Quoted Post
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

Code:
SUBSCRIBE ACTS


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.

csobsidian  
#5 Posted : Monday, November 29, 2021 12:16:36 PM(UTC)
csobsidian

Rank: Newbie

Groups: Registered
Joined: 4/19/2020(UTC)
Posts: 7
United States

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