Moderator: Mute or stop video for a peer globally (#316)
This commit is contained in:
@@ -68,6 +68,18 @@ const peer = (state = {}, action) =>
|
||||
return { ...state, roles };
|
||||
}
|
||||
|
||||
case 'STOP_PEER_AUDIO_IN_PROGRESS':
|
||||
return {
|
||||
...state,
|
||||
stopPeerAudioInProgress : action.payload.flag
|
||||
};
|
||||
|
||||
case 'STOP_PEER_VIDEO_IN_PROGRESS':
|
||||
return {
|
||||
...state,
|
||||
stopPeerVideoInProgress : action.payload.flag
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
@@ -102,6 +114,8 @@ const peers = (state = {}, action) =>
|
||||
case 'ADD_CONSUMER':
|
||||
case 'ADD_PEER_ROLE':
|
||||
case 'REMOVE_PEER_ROLE':
|
||||
case 'STOP_PEER_AUDIO_IN_PROGRESS':
|
||||
case 'STOP_PEER_VIDEO_IN_PROGRESS':
|
||||
{
|
||||
const oldPeer = state[action.payload.peerId];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user