|
@@ -23,7 +23,6 @@ import {
|
23
|
23
|
getRemoteParticipants,
|
24
|
24
|
muteRemoteParticipant
|
25
|
25
|
} from '../base/participants';
|
26
|
|
-import { getIsParticipantAudioMuted } from '../base/tracks';
|
27
|
26
|
|
28
|
27
|
declare var APP: Object;
|
29
|
28
|
|
|
@@ -108,18 +107,3 @@ export function muteAllParticipants(exclude: Array<string>, mediaType: MEDIA_TYP
|
108
|
107
|
};
|
109
|
108
|
}
|
110
|
109
|
|
111
|
|
-
|
112
|
|
-/**
|
113
|
|
- * Don't allow participants to unmute video/audio.
|
114
|
|
- *
|
115
|
|
- * @returns {Function}
|
116
|
|
- */
|
117
|
|
-export function blockParticipantsAudioVideo() {
|
118
|
|
- return (dispatch: Dispatch<any>, getState: Function) => {
|
119
|
|
- const state = getState();
|
120
|
|
- const participants = state['features/base/participants'];
|
121
|
|
-
|
122
|
|
- participants
|
123
|
|
- .map(p => !getIsParticipantAudioMuted(p) && setAudioMuted(true));
|
124
|
|
- };
|
125
|
|
-}
|