Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 85 Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
Is there a way via scripting to read UDP messages? Basically I'd want to cut to a specific input on receiving a UDP message and then switch to another on receiving another UDP message.
The reason for this is the system generating the commands can't do HTTP or TCP, just UDP. However, we can format those UDP messages as we like.
I'd been searching and can't find any information on this concept.
Thanks in advance.
Fritz Golman iHeartMedia
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2023(UTC) Posts: 41 Thanks: 8 times Was thanked: 10 time(s) in 3 post(s)
|
There is nothing built into vMix that supports this. However, a custom application could be written that proxies incoming UDP messages and then sends HTTP (or raw TCP) messages on to vMix.
Feel free to send me a private message, as I am available to hire if you would like this program written!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,239 Location: Belgium Thanks: 293 times Was thanked: 958 time(s) in 793 post(s)
|
Originally Posted by: ryxyz There is nothing built into vMix that supports this. Tried "System.Net.Sockets.UdpClient" instead of the usual Imports System.Net.Sockets?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,239 Location: Belgium Thanks: 293 times Was thanked: 958 time(s) in 793 post(s)
|
Originally Posted by: ryxyz There is nothing built into vMix that supports this. a working try vMixUDP.jpg (59kb) downloaded 12 time(s).
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 85 Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
Impressive!
This may just do the trick.
Now to set some actions!
Thanks!
Fritz
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 85 Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
OK this has been working great!
One further question, I set up an action that is trapped to shut down the script. All is well BUT it needs to close the UDP connection so it's free for the next time it's run (otherwise port stays open and throws an error). No matter what I've tried I've not been able to get the UDP connection to close. Would anyone have the script commands to do this?
Thanks!
Fritz Golman iHeartMedia
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 85 Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
Never mind, figured it out.
receivingudpclient.close()
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/30/2023(UTC) Posts: 85 Location: Chicago Thanks: 8 times Was thanked: 3 time(s) in 2 post(s)
|
Hey, Adding to this thread. Firstly, the UDP receiver script has been working great. It's been allowing interface between an automation system and vMix. Using it on several, high profile network programs broadcast in the USA. NOW, a slightly different need has arisen for use within this script. Although keeping the UDP receiver running, I'd also like to send out on a UDP command another UDP command to a different IP/Port when the script gets a specific input. Anyone have any experience with this? We would open UDP transmit port at beginning of script. Then when specific UDP command intercepted, send a string out on that port. Anyone? I don't know the specifics of VB Script enough to make this work. I've been lucky in that I've been able to cobble together the rest and it's been solid. Thanks for any input on this! UPDATE A search revealed a script snip using TCP (which will be fine) that can work with modifications: https://forums.vmix.com/...g-for-Dummies#post114636Fritz Golman iHeartMedia
|
|
|
|
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