vMix Forums
»
General
»
3rd Party Software and Development
»
API to read whether vMix is streaming, recording or both
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, For my M5Stick Tally Project, I'd like to expand some functionality to also display whether vMix is streaming/recording. However, I can't find a way in the documentation to read the status of vMix. The WEB API is used to trigger events and turn stuff on or off, and the TCP API only accepts subsciptions to TALLY or ACTS neither of which will give me the information I need. Am I looking past something, or is it simply not possible to know what the status of vMix is using the current API? Cheers, Guido
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 227 time(s) in 129 post(s)
|
Hello, TCP API have XMLTEXT command. Quote: Format: XMLTEXT XPATH
Example Request: XMLTEXT vmix/inputs/input[1]/@title\r\n
Example Response: XMLTEXT OK This is the title of the first input\r\n
Example Request: XMLTEXT vmix/inputs/input[6]/text[@name='Headline']\r\n
Example Response: XMLTEXT OK This is the value of Headline text field in title input that is the number 6 (index 5) input.\r\n
Description: Uses the XPATH syntax to retrieve individual text values of the XML state.
Use As XPath parameter.
|
|
|
|
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: elgarf Hello, TCP API have XMLTEXT command. Quote: Format: XMLTEXT XPATH
Example Request: XMLTEXT vmix/inputs/input[1]/@title\r\n
Example Response: XMLTEXT OK This is the title of the first input\r\n
Example Request: XMLTEXT vmix/inputs/input[6]/text[@name='Headline']\r\n
Example Response: XMLTEXT OK This is the value of Headline text field in title input that is the number 6 (index 5) input.\r\n
Description: Uses the XPATH syntax to retrieve individual text values of the XML state.
Use As XPath parameter. Awesome, thanks elgarf! A follow up question, though: It isn't possible to subscribe to the XMLTEXT, so I need to poll to know the status. Is there another, more efficient way, of retrieving the data rather than polling it every 5 seconds?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 227 time(s) in 129 post(s)
|
|
|
|
|
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)
|
It isn't possible, that's the problem. I'll add it on the features request board.
Thanks for your help elgarf!
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/28/2023(UTC) Posts: 9 Location: Abudabi Thanks: 1 times
|
Hi elgarf
i need to know if is there any way to log webapi access in vmix ?
and also send text without disruption via it
i mean right to left arrange + special chars like << ?
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
API to read whether vMix is streaming, recording or both
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