vMix Forums
»
General
»
3rd Party Software and Development
»
Http API response takes up to 10 seconds :(
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
|
|
|
|
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=11539Looks to be only a pro/4k option however.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/13/2010(UTC) Posts: 5,228 Location: Gold Coast, Australia Was thanked: 4332 time(s) in 1528 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
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
Http API response takes up to 10 seconds :(
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