vMix Forums
»
General
»
General Discussion
»
Access API data through DataSource
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2020(UTC) Posts: 77 Thanks: 8 times Was thanked: 2 time(s) in 2 post(s)
|
Greetings, can you take the data from the API, for example, the playback time of a video towards a simple title through datasource? example 1.- I have a video in input 1 playing 2.- in a simple title entry, I want to have the time of the video. The important issue is that I want to obtain that data to the title, from the same vmix api, through data source
Name: XML URL/Filename: http://localhost:8088/API XPath: /vmix/inputs[0]/@position
I have been trying some examples and nothing, please is it just the syntax or what am I doing wrong. greetings translated from Spanish to English by Google
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Papo Greetings, can you take the data from the API, for example, the playback time of a video towards a simple title through datasource? example 1.- I have a video in input 1 playing 2.- in a simple title entry, I want to have the time of the video. The important issue is that I want to obtain that data to the title, from the same vmix api, through data source
Name: XML URL/Filename: http://localhost:8088/API XPath: /vmix/inputs[0]/@position
I have been trying some examples and nothing, please is it just the syntax or what am I doing wrong. greetings why get that info through a datasource when it can be retrieved from the vMx API XML and end directly to the title. besides if you do it through a datasource you will have to convert it into a readable time anyways please check the scripting for dummies post in this forum for the multiple example doing just that (first page even) you say you want the time of the video (duration?) but in your xpath attempt you are looking for the position On another note, vmix datasource will not let you retrieve a single value but can a single input with all its details ( //input[@number='0'] ) but will hardpresssed to get fast updates
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2020(UTC) Posts: 77 Thanks: 8 times Was thanked: 2 time(s) in 2 post(s)
|
1.- I do not have the ability to use the scripts due to the license, so the use of scripts is ruled out. 2.- As an example I wrote the playback time which I think is different from the duration time, I think
It is rare that I cannot access the attributes of an entry, I would like to at least have that data in the data source.
translated from Spanish to English by Google
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Papo 1.- I do not have the ability to use the scripts due to the license, so the use of scripts is ruled out. 2.- As an example I wrote the playback time which I think is different from the duration time, I think
It is rare that I cannot access the attributes of an entry, I would like to at least have that data in the data source.
translated from Spanish to English by Google
if you want the API XML API as a datasource and retrieve the duration and position as is using the xpath ( //input[@number='0'] ) like i wrote before you get all the details of that input then just pick which column you want in your title as per usual datasource connection use to a title
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Access API data through DataSource
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