fixed video not showing after reconnect

This commit is contained in:
Craig
2020-02-04 15:37:56 +00:00
parent 2680a1f702
commit ce319ce334
9 changed files with 59 additions and 15 deletions

View File

@ -49,7 +49,7 @@ export const mutations = mutationTree(state, {
state.emotes = emotes
},
clear(state) {
reset(state) {
state.emotes = {}
state.history = []
},

View File

@ -1,6 +1,5 @@
import { getterTree, mutationTree, actionTree } from 'typed-vuex'
import { get, set } from '~/utils/localstorage'
import { accessor } from '~/store'
export const namespaced = true

View File

@ -35,7 +35,7 @@ export const mutations = mutationTree(state, {
state.clipboard = clipboard
},
clear(state) {
reset(state) {
state.id = ''
state.clipboard = ''
},

View File

@ -62,7 +62,7 @@ export const mutations = mutationTree(state, {
connected: false,
}
},
clear(state) {
reset(state) {
state.members = {}
},
})

View File

@ -111,9 +111,15 @@ export const mutations = mutationTree(state, {
state.tracks = state.tracks.filter((_, i) => i !== index)
},
clear(state) {
reset(state) {
state.index = -1
state.tracks = []
state.streams = []
state.width = 1280
state.height = 720
state.horizontal = 16
state.vertical = 9
state.playing = false
state.playable = false
},
})