vMix Forums
»
General
»
General Discussion
»
What can you do with scripting?
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 Location: Copenhagen, Denmark Thanks: 389 times Was thanked: 100 time(s) in 79 post(s)
|
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 Location: Copenhagen, Denmark Thanks: 389 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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
What can you do with scripting?
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