|
|
@ -25,6 +25,7 @@ export default {
|
|
|
|
leaveState: RequestState.initiated,
|
|
|
|
leaveState: RequestState.initiated,
|
|
|
|
leaveError: null,
|
|
|
|
leaveError: null,
|
|
|
|
participants: [],
|
|
|
|
participants: [],
|
|
|
|
|
|
|
|
mutedState: [],
|
|
|
|
remoteMediaStreams: {},
|
|
|
|
remoteMediaStreams: {},
|
|
|
|
selectedParticipant: null,
|
|
|
|
selectedParticipant: null,
|
|
|
|
manualSelection: false
|
|
|
|
manualSelection: false
|
|
|
@ -100,6 +101,9 @@ export default {
|
|
|
|
participantsList(state) {
|
|
|
|
participantsList(state) {
|
|
|
|
return state.participants;
|
|
|
|
return state.participants;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
mutedState(state){
|
|
|
|
|
|
|
|
return state.mutedState;
|
|
|
|
|
|
|
|
},
|
|
|
|
remoteMediaStreams(state) {
|
|
|
|
remoteMediaStreams(state) {
|
|
|
|
return state.remoteMediaStreams;
|
|
|
|
return state.remoteMediaStreams;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -225,6 +229,16 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setManualSelection(state, val){
|
|
|
|
setManualSelection(state, val){
|
|
|
|
state.manualSelection = val;
|
|
|
|
state.manualSelection = val;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
addMutedState(state, participantId){
|
|
|
|
|
|
|
|
if(!state.mutedState[participantId]){
|
|
|
|
|
|
|
|
state.mutedState.push(participantId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
removeMutedState(state, participantId){
|
|
|
|
|
|
|
|
state.mutedState = state.mutedState.filter(($participant) => {
|
|
|
|
|
|
|
|
return participantId !== $participant;
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
actions: {
|
|
|
@ -418,6 +432,17 @@ export default {
|
|
|
|
context.commit('leaveFailed', err.message);
|
|
|
|
context.commit('leaveFailed', err.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
muteAll(context){
|
|
|
|
|
|
|
|
for(let participant of context.getters.participantsList){
|
|
|
|
|
|
|
|
context.commit('addMutedState', participant);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
unMuteAll(context){
|
|
|
|
|
|
|
|
for(let participant of context.getters.participantsList){
|
|
|
|
|
|
|
|
context.commit('removeMutedState', participant);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|