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
JohanSpijker  
#1 Posted : Sunday, February 5, 2017 7:21:08 AM(UTC)
JohanSpijker

Rank: Advanced Member

Groups: Registered
Joined: 11/13/2016(UTC)
Posts: 42
Location: Brugge

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Hi there,
Can somebody tell me what is the filename and correct path of the xml file (under api)
I am now browsing to: http://192.168.1.46:8088/api
but the xml opens in my browser, do you know the correct filename and path of the xml file ?
Thanks a lot!
DWAM  
#2 Posted : Sunday, February 5, 2017 7:37:47 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi Johan

I quite don't understand what you expect here. This is the normal behaviour. XML urls starting with http:// are supposed to open in your web browser, aren't they?
JohanSpijker  
#3 Posted : Sunday, February 5, 2017 9:23:49 AM(UTC)
JohanSpijker

Rank: Advanced Member

Groups: Registered
Joined: 11/13/2016(UTC)
Posts: 42
Location: Brugge

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
I want to use the ***.xml file, import it in a 3 party touchpaneel, so I can read out the status, etc
DWAM  
#4 Posted : Sunday, February 5, 2017 9:49:12 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
I still don't understand what you expect...

You've got the correct url for reading vMix API status in XML format in a "web browser" (as explicitely indicated by the use of the http protocol)

You can save this into a "static" file from your web browser if you want, but it makes no sense as, by definition, vMix status changes all the time depending on each and every actions that are done in vMix.

AFAIK there is no other way to read vMix API status.
JohanSpijker  
#5 Posted : Sunday, February 5, 2017 10:59:41 AM(UTC)
JohanSpijker

Rank: Advanced Member

Groups: Registered
Joined: 11/13/2016(UTC)
Posts: 42
Location: Brugge

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
Is anybody know what the "21207c48-ec14-4b0b-9671-418213cb23e6" means in the xml.
Is that random ?


<vmix>
<version>18.0.0.59</version>
<inputs>
<input key="21207c48-ec14-4b0b-9671-418213cb23e6" number="1" type="Video" title="wolken alleen" state="Paused" position="69169" duration="597612" loop="False" muted="True" volume="100" balance="0" solo="False" audiobusses="M,A,B" meterF1="0" meterF2="0">
wolken alleen
<position zoomX="1.525" zoomY="1.525"/>
</input>
</inputs>
</vmix>
DWAM  
#6 Posted : Sunday, February 5, 2017 11:11:01 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Quote:
Is anybody know what the "21207c48-ec14-4b0b-9671-418213cb23e6" means in the xml.


It is a unique identifyer for inputs. It's called "GUID". It is a better way to call/select inputs as opposed to using the input number (1 in your example) which is subject to change when you add or remove inputs in your vMix project.

Check the documentation for more details:
http://www.vmix.com/help18/DeveloperAPI.html
JohanSpijker  
#7 Posted : Sunday, February 5, 2017 7:15:13 PM(UTC)
JohanSpijker

Rank: Advanced Member

Groups: Registered
Joined: 11/13/2016(UTC)
Posts: 42
Location: Brugge

Thanks: 5 times
Was thanked: 1 time(s) in 1 post(s)
But this GUID changes all the time, so it is not usable to do status request for that input ?
I am building een ceremony (funerals) app to control some inputs (photoshow, video, PowerPoint, etc)
The technician put the content in the correct (fixed)inputs in the VMIX pc.
( input1: photoshow ; input two: video ; input three: another photoshow ;.....)

The person who is in front of the public only have to push a few buttons on the tablet, that activate the quick-play of the correct inputs in the v-mix.
Controlling is not the problem, but I want to show also info on the tablet.
That is the reason why I want to read the XML.

below is a piece of javascript code i use that works fine for the "version", "recording state",....but not for the inputs :(


function infoVmix() {
CF.request("http://192.168.1.46:8088/api", parseData3);
}

function parseData3(status,headers,body) {
if (status == 200) {
var parser = new DOMParser();
var doc = parser.parseFromString(body, "text/xml");

var versionElement = doc.getElementsByTagName("version")[0];
CF.log ("version =" + versionElement.textContent);
CF.setJoin("s2055", versionElement.textContent);
}
DWAM  
#8 Posted : Monday, February 6, 2017 3:49:13 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
GUIDs won't change if you save your project as a vMix preset
Users browsing this topic
Guest (2)
Similar Topics
Converting string from API.XML to integer (General Discussion)
by svetotehnik 2/20/2021 5:42:36 PM(UTC)
Convert Replay.XML InPoint To Time (Instant Replay)
by dror 2/14/2021 3:03:39 AM(UTC)
Script error "replay.xml is being used by another process." (Instant Replay)
by Ario 3/9/2020 8:47:31 AM(UTC)
Audio Fade Script: API.XML Audio Numbers in a different scale to Volume Shortcut Scale (3rd Party Software and Development)
by aircooled76@gmail.com 9/9/2018 12:31:26 PM(UTC)
Replay.xml (Instant Replay)
by MFilgueiras 9/6/2018 9:55:09 AM(UTC)
Virtualset config.xml resets / don't save (General Discussion)
by iluppiHD 4/5/2017 3:40:55 AM(UTC)
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.