> For the complete documentation index, see [llms.txt](https://ontime.gitbook.io/v2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ontime.gitbook.io/v2/additional-notes/control-ontime-from-vmix.md).

# Control Ontime from vMix

The most straightforward way to get Ontime synced with vMix is probably by using Ontime's [HTTP API](/v2/control-and-feedback/ontime-apis/http-api.md) which provides easy access to the apps playback functions.&#x20;

Adapting from [this vMix forum post ](https://forums.vmix.com/posts/t7079-http-command-midi)we see that a workflow could look like:

* [ ] Go to **Settings** - **Scripting** and click **Add**
* [ ] Paste the following and **Save**

{% code lineNumbers="true" fullWidth="false" %}

```vbnet
' 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()
stream.Close()

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

```

{% endcode %}

{% hint style="info" %}
Remember to change ONTIME-IP with the IP address of the machine running the Ontime App (127.0.0.1 if the same)
{% endhint %}

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ontime.gitbook.io/v2/additional-notes/control-ontime-from-vmix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
