Control Ontime from vMix

The most straightforward way to get Ontime synced with vMix is probably by using Ontime's HTTP API which provides easy access to the apps playback functions.

Adapting from this vMix forum post we see that a workflow could look like:

' This code creates a POST request to start an event with id 4b044
Dim request As WebRequest
request = WebRequest.Create("http://localhost:4001/playback/start?eventId=4b044")
Dim response As WebResponse

request.Method = "POST"
request.ContentType = "application/x-www-form-urlencoded"

Dim stream As Stream = request.GetRequestStream()

response = request.GetResponse()
Dim sr As New StreamReader(response.GetResponseStream())

Remember to change ONTIME-IP with the IP address of the machine running the Ontime App ( if the same)

From here you should be able to add the script as needed. Please follow vMix documentation for next steps

Last updated