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
nowski  
#1 Posted : Thursday, August 17, 2017 1:50:17 PM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
I am getting stuck into the Vmix ecosystem, today was my first successful show.
But I'm wondering what sort of thing I can do with Scripting.
In my head, I'm thinking can I have a Dialogue box with a few input fields which I can then fill in with stuff like show title, youtube streaming id etc?
The results of my input can do stuff like set titles in text inputs, append an id to a URL string - to access the Youtube chat window, fire of a URL to my server to tell it to update the website to say we are streaming etc.
All things that mean setting up a weekly show episode will be way simpler.

I am new to VB net scripting, but am reasonably competent in other languages. Before I dive in is this sort of thing even possible?
There seems to be very little examples of this sort of thing to check.

many thanks
stigaard  
#2 Posted : Thursday, August 17, 2017 5:20:39 PM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 382 times
Was thanked: 100 time(s) in 79 post(s)
For the case that you describe, I would recommend you to build your own interface, hooking up to the vMix Web API, where you can send commands and control vMix.

Take a look at http://www.vmix.com/help19/WebScripting.html
nowski  
#3 Posted : Friday, August 18, 2017 6:56:35 AM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
Okay I think I can do this via web scripting as suggested, thanks for the tip.
However, when using the BrowserNavigate function I need to send URL parameters too for the outgoing URL like this:

http://192.168.1.14:8088/API/?Function=BrowserNavigate&Input=36Value=https://www.youtube.com/live_chat?v=someytid

It needs to pass the full URL value to the browser including the ?v= part but doesnt.

I think the Web API parser tries to apply the url parameters in the Value string rather than pass them to the Browser input. Ive tried URL encoding the Value parameter, but it doesnt work either.

Many thanks
stigaard  
#4 Posted : Friday, August 18, 2017 8:17:41 AM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 382 times
Was thanked: 100 time(s) in 79 post(s)
nowski wrote:
Okay I think I can do this via web scripting as suggested, thanks for the tip.
However, when using the BrowserNavigate function I need to send URL parameters too for the outgoing URL like this:

http://192.168.1.14:8088/API/?Function=BrowserNavigate&Input=36Value=https://www.youtube.com/live_chat?v=someytid

It needs to pass the full URL value to the browser including the ?v= part but doesnt.

I think the Web API parser tries to apply the url parameters in the Value string rather than pass them to the Browser input. Ive tried URL encoding the Value parameter, but it doesnt work either.

Many thanks


To pass an url as a GET parameter in a url you need to encode the parameter. In PHP the function is called urlencode() and in javascript it is called encodeURIComponent(). Depending on the language you are using, you need to find a similar function to encode the url properly.
nowski  
#5 Posted : Friday, August 18, 2017 8:21:12 AM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
Thats what I figured and so encoded the URL, that didnt seem to work though.
nowski  
#6 Posted : Saturday, August 19, 2017 8:38:10 AM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
UPDATE:
URL encoding worked using another method, which has now allowed me to:

Enter the YTID on my site (which also updates the live viewing page with the current YT embed), Enter a Title for the Current Episode,
It pings back local Vmix via the WEB API interface, updating the show title overlay, pulling the correct url for the YT chat window in the web browser input.
Also when I hit record, A URL is pinged on my server, updating a site variable, which shows that we are live streaming, and reverts when recording is done.

Now I must say that is flippin awesome. As a one man production, the less I have to do means I can focus on being the host.

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