Bas wrote:
Speegs solutions is for this moment a difficult one. I am not a .net programmer. But i will find someone later on. I need to search also somebody who can teach me more abot the Api.
I'm not either, but have used JavaScript and Powershell to talk to the API mostly because I wouldn't want to install anything extra on the Vmix machine for the simple jobs I've done.
The API is not locked to any language. It's pretty much any language that talks the web :)
The language has to be able to fire a url. eg:
http://127.0.0.1/API/?Fu...mething&option=helloThe language has to read XML to receive information from Vmix like which input is active etc.. (if it needs to check Vmix and not just blindly send)
Provide some more information about the PHP Code, maybe I could give you a head start.
That said if someone has already made what you want, like the scheduler or maybe you can just use the playlists and a couple of macros for instance. That would be easier :)
So while you can't add PHP code in a title.
You could run a php command/function that updates a title with a few extra lines of code.
Most simple example:
Say you have an title, it's in position input 1. You want to change it's text in the field headline of the title. This would be the code. Localhost is the IP address of the Vmix computer.
<?php
$newtitle = urlencode('This is my new title text here');
$apiurl = 'http://localhost:8088/API/?Function=SetText&Input=1&SelectedName=Headline&Value=';
$result = file_get_contents($apiurl . $newtitle);
echo $result;
?>
So you can get something complex via PHP (maybe a live data for the stock prices anything really) and pump it quickly into a Vmix title.
You can use PHP, the place you are running PHP just has to be able to contact the Vmix computer. Not a problem if running PHP on the Vmix computer, if not firewalls might need to be configured to allow your web server to send commands directly to VMix.
I would work the other way, get the vmix computer to pull information from your web server. PHP could be installed on the Vmix computer if desired (http://php.net/manual/en/install.windows.commandline.php). Personally I use powershell as it's built into Windows and the stuff I do is very simple (not hard to google some instructions), but I do wish to learn some .NET myself eventually now that VMix supports scripting.
My point, the web API allows you to easily change text in titles. The language used doesn't much matter at all. It's an ALL programming language solution. Could be a Macro/AutoHotkey, VBScript, PHP, Batch File (with Wget.exe), Javascript, Free Pascal, Python, GO or many others.
Hope this helps start the learning :)