vmix-ts
v0.1.0
Published
A (mostly) typesafe wrapper for the [vMix TCP API](https://www.vmix.com/help24/ShortcutFunctionReference.html), tested with vMix 26+.
Downloads
2
Readme
vmix-ts
A (mostly) typesafe wrapper for the vMix TCP API, tested with vMix 26+.
Installation
npm install vmix-ts
# or
yarn add vmix-ts
Usage
import { VMixConnection } from "vmix-ts";
const conn = await VMixConnection.connect({ host: "localhost", port: 8099 });
await conn.addInput("Video", "C:\\video.mp4");
stateSchemaMismatchMode
vmix-ts
has internal validation for the data returned by the vMix API, however it's possible that it changes between vMix versions before we can update it.
To control its behaviour, use the stateSchemaMismatchMode
parameter:
import { VMixConnection } from "vmix-ts";
const conn = await VMixConnection.connect({
host: "localhost",
port: 8099,
stateSchemaMismatchMode: "log", // or "error" or "ignore"
});
In "log" mode, a warning will be logged to the console when a mismatch is detected. In "error" mode, an error will be thrown.
If you see these errors, please open an issue!