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.

11 lines (8 loc) 265 B
import store from '../../store' const { state } = store export const getAccountId = () => { return state.Params.viewer.streamId?.match(/^(.*?)\/.*$/)?.[1] } export const getStreamName = () => { return state.Params.viewer.streamId?.match(/^.*?\/(.*)$/)?.[1] }