# Control Ontime from vMix

The most straightforward way to get Ontime synced with vMix is probably by using Ontime's [HTTP API](https://ontime.gitbook.io/ontime-v1-old/control-and-feedback/http-api) 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**

```
Dim client = WebRequest.Create("http://ONTIME-IP:4001/playback/start")
Dim response = client.GetResponse()
```

{% 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: 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:

```
GET https://ontime.gitbook.io/ontime-v1-old/additional-notes/control-ontime-from-vmix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
