Added advanced options for sticky app bar, lastn. Optimized some component rendering.
This commit is contained in:
@@ -4,7 +4,8 @@ const initialState =
|
||||
selectedWebcam : null,
|
||||
selectedAudioDevice : null,
|
||||
advancedMode : false,
|
||||
resolution : 'high' // low, medium, high, veryhigh, ultra
|
||||
resolution : 'medium', // low, medium, high, veryhigh, ultra
|
||||
lastN : 4
|
||||
};
|
||||
|
||||
const settings = (state = initialState, action) =>
|
||||
@@ -35,6 +36,20 @@ const settings = (state = initialState, action) =>
|
||||
return { ...state, advancedMode };
|
||||
}
|
||||
|
||||
case 'SET_LAST_N':
|
||||
{
|
||||
const { lastN } = action.payload;
|
||||
|
||||
return { ...state, lastN };
|
||||
}
|
||||
|
||||
case 'TOGGLE_STICKY_APPBAR':
|
||||
{
|
||||
const stickyAppBar = !state.stickyAppBar;
|
||||
|
||||
return { ...state, stickyAppBar };
|
||||
}
|
||||
|
||||
case 'SET_VIDEO_RESOLUTION':
|
||||
{
|
||||
const { resolution } = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user