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
roverradio  
#1 Posted : Monday, May 8, 2017 11:56:07 PM(UTC)
roverradio

Rank: Advanced Member

Groups: Registered
Joined: 5/6/2016(UTC)
Posts: 83
United States

Was thanked: 5 time(s) in 5 post(s)
Hey there,

I can use the Web Controller to switch between two sources on a remote vMix machine located off-site. But I'm wondering if there is a way to create shortcuts on our studio vMix machine to switch those inputs on the remote vMix machine (instead of using web controller).

Thanks!
Speegs  
#2 Posted : Tuesday, May 9, 2017 12:43:34 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
roverradio wrote:
Hey there,

I can use the Web Controller to switch between two sources on a remote vMix machine located off-site. But I'm wondering if there is a way to create shortcuts on our studio vMix machine to switch those inputs on the remote vMix machine (instead of using web controller).

Thanks!



If you have a Vmix Version that supports scripting you can do this:

Console.WriteLine("Begin Script")
Dim ActionURL As String = "http://localhost:8088/API/?Input=1&Function=Play"
Dim webClient As New System.Net.WebClient
Dim result As String = webClient.DownloadString(ActionURL)
Console.WriteLine(result)
Console.WriteLine("End Script")


Replace localhost with the IP address of the Vmix computer you wish to control. Then study up on the web API commands you want to call. This example would play the video on input 1, if it was a video.

You can assign keys on your keyboard to run a script, so map the f12 key for example, to play this script.

So pretty much anything you could do in the web controller you could potentially do via a script, plus a shortcut. Using the API.

thanks 3 users thanked Speegs for this useful post.
Squier on 5/9/2017(UTC), Jubbles on 10/25/2020(UTC), Kpronin on 9/15/2021(UTC)
Speegs  
#3 Posted : Tuesday, May 9, 2017 12:49:04 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
Forgot to mention this is scripting, so if you wanted to do 1 or 5 things with the script when you hit your magic button it wouldn't be a problem.
roverradio  
#4 Posted : Tuesday, May 9, 2017 1:18:04 AM(UTC)
roverradio

Rank: Advanced Member

Groups: Registered
Joined: 5/6/2016(UTC)
Posts: 83
United States

Was thanked: 5 time(s) in 5 post(s)
Fantastic - I'll give it a shot tomorrow (heading to bed now). Thanks so much!
Speegs  
#5 Posted : Tuesday, May 9, 2017 1:27:05 AM(UTC)
Speegs

Rank: Advanced Member

Groups: Registered
Joined: 8/3/2013(UTC)
Posts: 405
Location: Gold Coast, Australia

Thanks: 27 times
Was thanked: 76 time(s) in 58 post(s)
To Fade to Input 2, this would be what you would use as your ActionURL. Replacing localhost with the IP address of the Vmix machine you wish to control. I couldn't explain all the functions, but most of the shortcuts in the menu that pops up you can do via the web api. There might be some functions missing, but I don't believe many.

Dim ActionURL As String = "http://localhost:8088/API/?Input=2&Function=Fade"
IceStream  
#6 Posted : Tuesday, May 9, 2017 7:23:30 AM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,636
Man
Location: Canada

Thanks: 33 times
Was thanked: 506 time(s) in 475 post(s)
@ roverradio

Not sure if this is the answer, but worth a look:

https://forums.vmix.com/....aspx?g=posts&t=9593

And related 'Feature Request' here:
https://forums.vmix.com/....aspx?g=posts&t=9598


Ice
Jubbles  
#7 Posted : Sunday, October 25, 2020 10:01:40 AM(UTC)
Jubbles

Rank: Newbie

Groups: Registered
Joined: 9/7/2020(UTC)
Posts: 2

Thanks: 1 times
Originally Posted by: Speegs Go to Quoted Post
Forgot to mention this is scripting, so if you wanted to do 1 or 5 things with the script when you hit your magic button it wouldn't be a problem.


Thank you for your earlier post, extremely useful. I don't have much coding experience, but can you give an example of multiple triggers?

After taking a big leap forward with my setup with the help of your code, I'm now stuck on single triggers.

Thanks
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.