1.1.0 • Published 3 years ago

vue-vmix-conn-plugin v1.1.0

Weekly downloads
53
License
MIT
Repository
github
Last release
3 years ago

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)
	}
}
1.1.0

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago