vMix Forums
»
General
»
3rd Party Software and Development
»
API - Sending more than one field to a tile a the same time?
Rank: Advanced Member
Groups: Registered
Joined: 5/14/2013(UTC) Posts: 140 Location: uk Thanks: 2 times Was thanked: 24 time(s) in 20 post(s)
|
Hi all I have a PHP script that sends some data to a title in vmix then triggers that title as an overlay , see below Code:$newtitle = htmlspecialchars($_GET["radio_off"]);
$apiurl = 'http://192.168.0.88:8088/API/?Function=SetText&Input=subs&Selectedindex=3&Value=';
$result = file_get_contents($apiurl . urlencode($newtitle), FALSE, NULL);
$newtitlea = htmlspecialchars($_GET["radio_on"]);
$apiurl = 'http://192.168.0.88:8088/API/?Function=SetText&Input=subs&Selectedindex=4&Value=';
$result = file_get_contents($apiurl . urlencode($newtitlea), FALSE, NULL);
$apiurl = 'http://192.168.0.88:8088/API/?Function=OverlayInput1&Input=subs';
$result = file_get_contents($apiurl , FALSE, NULL);
As you can see I'm having to send three commands, one for each line of the title and one to fire the title. Is there a way in the Vmix API syntax to send it all in one go as currently, PHP waits for each file_get_contents to timeout before running the next line, so slowing the whole process down, as a bodge in the top of my script i set Code:ini_set("default_socket_timeout", 1);
to at least try and keep things down to a few seconds overall. Also whilst I'm at it what is the best PHP function to use to send to Vmix file_get_contents seems a bit of a clunky way of doing it . cheers Ian
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
API - Sending more than one field to a tile a the same time?
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