Refactor stateActions for better overview.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
export const setSelectedAudioDevice = (deviceId) =>
|
||||
({
|
||||
type : 'CHANGE_AUDIO_DEVICE',
|
||||
payload : { deviceId }
|
||||
});
|
||||
|
||||
export const setSelectedWebcamDevice = (deviceId) =>
|
||||
({
|
||||
type : 'CHANGE_WEBCAM',
|
||||
payload : { deviceId }
|
||||
});
|
||||
|
||||
export const setVideoResolution = (resolution) =>
|
||||
({
|
||||
type : 'SET_VIDEO_RESOLUTION',
|
||||
payload : { resolution }
|
||||
});
|
||||
|
||||
export const setDisplayName = (displayName) =>
|
||||
({
|
||||
type : 'SET_DISPLAY_NAME',
|
||||
payload : { displayName }
|
||||
});
|
||||
|
||||
export const toggleAdvancedMode = () =>
|
||||
({
|
||||
type : 'TOGGLE_ADVANCED_MODE'
|
||||
});
|
||||
Reference in New Issue
Block a user