vue-vmix-conn-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

vue-vmix-conn-plugin

package json version npm version npm downloads

NPM Badge

vMix connection plugin for Vue.

Usage

Install dependency and add to dependencies list

Yarn

yarn add vue-vmix-conn-plugin -d

NPM

npm install vue-vmix-conn-plugin --save

Instanciate with Vue instance

// In main script
const Vue = require('vue')
const { vMixConnectionPlugin, vMixConnectionPluginStore } = require('vue-vmix-conn-plugin')

// Important line - install plugin in Vue
Vue.use(vMixConnectionPlugin, new vMixConnectionPluginStore())

const app = new Vue({
	// ...options
}).$mount('#app')

Simple use

You can now access the vMix connection plugin and use it in any Vue file.

// In Vue file
export default {
	created() {
		this.$vMixConnection.setConnection('192.168.0.115', { debug: true })
		this.$vMixConnection.on('data', data => {
			console.log('Received data from vMix instance')
			console.log(data)
		})

		console.log(this.$vMixConnection.connected)
	}
}

Package Sidebar

Install

npm i vue-vmix-conn-plugin

Weekly Downloads

12

Version

1.1.0

License

MIT

Unpacked Size

18.9 kB

Total Files

9

Last publish

Collaborators

  • jensstigaard