vMix Forums
»
General
»
General Discussion
»
Question About Delaying API Command
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
Hi all, have been having some trouble figuring this one out.
For my radio stations website, I want to swap between a delayed and non delayed version of our video feed, depending on if our audio is in delay or not (profanity delay)
Now the thing is, it takes the profanity delay about two minutes to build up to its maximum delay time.
I am sending commands via tcp from our playout program. How would I go about delaying the tcp command by two minutes? Could I do it with a script when the command reaches vMix?
Any help is much appreciated, cheers
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
use a "pause" or "sleep" command before the command... depends on your shell interface I believe...
You can also do this with vMix UTC or Panel Builder
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
I was under the impression the sleep command works with scripting only and does not work with the API commands? That is what vMix support told me.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
You mentionned sending TCP API from your playout system so it relies on this side or you could send your command to a vMix script which can start by a sleep command before executing the command...
|
1 user thanked DWAM for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
Ah I see, so I could send an api to call a script? Any chance you could help with the code?
It basically needs to wait 2mins after it receives the api command, then switch the input of externaloutput2
Thanks for your help!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,227 Location: Belgium Thanks: 293 times Was thanked: 956 time(s) in 791 post(s)
|
Originally Posted by: LMarshRadio Ah I see, so I could send an api to call a script? Any chance you could help with the code?
It basically needs to wait 2mins after it receives the api command, then switch the input of externaloutput2
Thanks for your help! check out the "scripting for dummies" post Combined with the helpfiles especially shortcut function reference
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
Yes check the scripting section in the manual's shortcut function reference We have several options to trigger a script with the API, then it's just a matter of writing your script as it should to execute your needs...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
Thanks guys will give this a shot tomorrow and let you know how I go, cheers
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
Hi guys, I have tried the code below and it runs, the sleep works but the external output does not change, any ideas why?
Sleep (3000) API.Function("SetOutputExternal2""Value=Input""Input=Delay")
Thanks
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 6/17/2020(UTC) Posts: 6 Thanks: 1 times
|
Nevermind I figured it out, it turns out if you test a script it does not save the effects of your test when you exit the settings menu? Makes it a little hard to test if it actually works ;)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 569 Location: Manitoba Thanks: 115 times Was thanked: 313 time(s) in 178 post(s)
|
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Question About Delaying API Command
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