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: 41
Netherlands
Location: The Netherlands

Thanks: 7 times
Was thanked: 23 time(s) in 14 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 :)
ovonder  
#2 Posted : Sunday, October 18, 2020 3:44:58 AM(UTC)
ovonder

Rank: Member

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

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

Rank: Member

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

Thanks: 1 times
Was thanked: 1 time(s) in 1 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: 41
Netherlands
Location: The Netherlands

Thanks: 7 times
Was thanked: 23 time(s) in 14 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.

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