@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.
21 lines (18 loc) • 474 B
JavaScript
import { defaultViewerOptions } from '../../service/viewerOptions'
import { defaultEnvOptions } from '../../service/environmentOptions'
const defaulState = {
viewer: defaultViewerOptions,
environment: defaultEnvOptions
}
export default {
namespaced: true,
state: defaulState,
mutations: {
setViewerOptions(state, viewer) {
state.viewer = viewer
},
setEnvironmentOptions(state, environment) {
state.environment = environment
},
},
}