UNPKG

@millicast/vue-viewer-plugin

Version:

Vue.js plugin to embed viewer of a Millicast stream. This plugin allows developers to simplify Millicast services integration into their own Vue.js apps.

29 lines (27 loc) 467 B
const defaultState = { millicastView: null, eventListeners: { reconnect: null, stats: null, broadcastEvent: null, }, trackEvent: { audio: { track: null, transceiver: [null], }, video: { track: null, transceiver: [null], }, }, } export default { namespaced: true, state: defaultState, mutations: { setMillicastView(state, millicastView) { state.millicastView = millicastView }, }, }