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
fgolman  
#1 Posted : Tuesday, October 10, 2023 7:40:40 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 55
United States
Location: Chicago

Thanks: 8 times
Was thanked: 2 time(s) in 1 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
ryxyz  
#2 Posted : Wednesday, October 11, 2023 4:52:08 AM(UTC)
ryxyz

Rank: Member

Groups: Registered
Joined: 2/23/2023(UTC)
Posts: 23
United States

Thanks: 4 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!
doggy  
#3 Posted : Wednesday, October 11, 2023 6:01:17 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,088
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: ryxyz Go to Quoted Post
There is nothing built into vMix that supports this.


Tried "System.Net.Sockets.UdpClient" instead of the usual Imports System.Net.Sockets?
doggy  
#4 Posted : Thursday, October 12, 2023 8:27:43 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,088
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 920 time(s) in 759 post(s)
Originally Posted by: ryxyz Go to Quoted Post
There is nothing built into vMix that supports this.


a working try

vMixUDP.jpg (59kb) downloaded 7 time(s).
thanks 1 user thanked doggy for this useful post.
fgolman on 1/5/2024(UTC)
fgolman  
#5 Posted : Thursday, October 12, 2023 9:30:26 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 55
United States
Location: Chicago

Thanks: 8 times
Was thanked: 2 time(s) in 1 post(s)
Impressive!

This may just do the trick.

Now to set some actions!

Thanks!

Fritz
fgolman  
#6 Posted : Friday, January 5, 2024 7:36:16 AM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 55
United States
Location: Chicago

Thanks: 8 times
Was thanked: 2 time(s) in 1 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
fgolman  
#7 Posted : Friday, January 5, 2024 3:18:59 PM(UTC)
fgolman

Rank: Advanced Member

Groups: Registered
Joined: 3/30/2023(UTC)
Posts: 55
United States
Location: Chicago

Thanks: 8 times
Was thanked: 2 time(s) in 1 post(s)
Never mind, figured it out.

receivingudpclient.close()
Perry24  
#8 Posted : Tuesday, January 16, 2024 10:26:52 PM(UTC)
Perry24

Rank: Newbie

Groups: Registered
Joined: 1/16/2024(UTC)
Posts: 1
Azerbaijan

Thank you for discussing this.
DGCustomerFirst
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.