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
puruzio  
#1 Posted : Monday, August 28, 2017 12:30:57 PM(UTC)
puruzio

Rank: Member

Groups: Registered
Joined: 1/30/2013(UTC)
Posts: 25
Location: CA, USA

Thanks: 12 times
I'm developing a simple app to automatically update Titles via http commands using VMix apis.
Each update changes the top margin, change stext, and then turns on overlay.

The problem I'm facing is that the first step's response time randomly ranges from 1-10 seconds, making this approach unreliable.
"http://192.168.11.107:8088/api/?Function=SetPanY&Input=6&Value=-0.3"
"http://192.168.11.107:8088/api/?Function=SetText&Input=6&Value=%EC%98%A8%20…
"http://192.168.11.107:8088/api/?Function=OverlayInput1In&Input=6"

Any idea why certain function takes this long, and is there a fix for this?
If there is a better way to adjust the top margin via api, I'm open to that too.

Thanks,

Jason
Speegs  
#2 Posted : Monday, August 28, 2017 7:53:37 PM(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)
Just a thought, combining commands into one might help, dropping the number of requests required. Maybe not the full solution, only an "assist" in this case.

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

Looks to be only a pro/4k option however.
admin  
#3 Posted : Monday, August 28, 2017 10:21:07 PM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,207
Man
Location: Gold Coast, Australia

Was thanked: 4285 time(s) in 1519 post(s)
Hi Jason,

The delay is likely going to be on the client end. I have seen this happen where the client
does not correctly close the connection after each request.

If you build the app using .NET the WebClient does this automatically and has no delays, so that is what I would recommend.
Otherwise refer to the documentation for the method being used to see how to close the connection or handles correctly.

Regards,

Martin
vMix
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.