Skip to content
/ vmix-ts Public

A (mostly) type-safe wrapper for the vMix TCP API.

License

Notifications You must be signed in to change notification settings

ystv/vmix-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A (mostly) type-safe wrapper for the vMix TCP API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published