|
@@ -112,19 +112,6 @@ export function setVideoMuted(
|
112
|
112
|
};
|
113
|
113
|
}
|
114
|
114
|
|
115
|
|
-/**
|
116
|
|
- * Toggles the mute state of the local audio track(s).
|
117
|
|
- *
|
118
|
|
- * @returns {Function}
|
119
|
|
- */
|
120
|
|
-export function toggleAudioMuted() {
|
121
|
|
- return (dispatch: Dispatch<*>, getState: Function) => {
|
122
|
|
- const muted = getState()['features/base/media'].audio.muted;
|
123
|
|
-
|
124
|
|
- return dispatch(setAudioMuted(!muted));
|
125
|
|
- };
|
126
|
|
-}
|
127
|
|
-
|
128
|
115
|
/**
|
129
|
116
|
* Toggles the camera facing mode. Most commonly, for example, mobile devices
|
130
|
117
|
* such as phones have a front/user-facing and a back/environment-facing
|
|
@@ -141,18 +128,3 @@ export function toggleCameraFacingMode() {
|
141
|
128
|
type: TOGGLE_CAMERA_FACING_MODE
|
142
|
129
|
};
|
143
|
130
|
}
|
144
|
|
-
|
145
|
|
-/**
|
146
|
|
- * Toggles the mute state of the local video track(s).
|
147
|
|
- *
|
148
|
|
- * @returns {Function}
|
149
|
|
- */
|
150
|
|
-export function toggleVideoMuted() {
|
151
|
|
- return (dispatch: Dispatch<*>, getState: Function) => {
|
152
|
|
- const muted = getState()['features/base/media'].video.muted;
|
153
|
|
-
|
154
|
|
- // XXX The following directly invokes the action creator in order to
|
155
|
|
- // silence Flow.
|
156
|
|
- return setVideoMuted(!muted)(dispatch, getState);
|
157
|
|
- };
|
158
|
|
-}
|