fix(media_actions): remove unused actions
This commit is contained in:
parent
64b11b571f
commit
f050e7026d
|
@ -112,19 +112,6 @@ export function setVideoMuted(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Toggles the mute state of the local audio track(s).
|
|
||||||
*
|
|
||||||
* @returns {Function}
|
|
||||||
*/
|
|
||||||
export function toggleAudioMuted() {
|
|
||||||
return (dispatch: Dispatch<*>, getState: Function) => {
|
|
||||||
const muted = getState()['features/base/media'].audio.muted;
|
|
||||||
|
|
||||||
return dispatch(setAudioMuted(!muted));
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggles the camera facing mode. Most commonly, for example, mobile devices
|
* Toggles the camera facing mode. Most commonly, for example, mobile devices
|
||||||
* such as phones have a front/user-facing and a back/environment-facing
|
* such as phones have a front/user-facing and a back/environment-facing
|
||||||
|
@ -141,18 +128,3 @@ export function toggleCameraFacingMode() {
|
||||||
type: TOGGLE_CAMERA_FACING_MODE
|
type: TOGGLE_CAMERA_FACING_MODE
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Toggles the mute state of the local video track(s).
|
|
||||||
*
|
|
||||||
* @returns {Function}
|
|
||||||
*/
|
|
||||||
export function toggleVideoMuted() {
|
|
||||||
return (dispatch: Dispatch<*>, getState: Function) => {
|
|
||||||
const muted = getState()['features/base/media'].video.muted;
|
|
||||||
|
|
||||||
// XXX The following directly invokes the action creator in order to
|
|
||||||
// silence Flow.
|
|
||||||
return setVideoMuted(!muted)(dispatch, getState);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue