Added resolution setting.
This commit is contained in:
@@ -4,7 +4,8 @@ const initialState =
|
||||
picture : null,
|
||||
selectedWebcam : null,
|
||||
selectedAudioDevice : null,
|
||||
advancedMode : false
|
||||
advancedMode : false,
|
||||
resolution : 'high' // low, medium, high, veryhigh, ultra
|
||||
};
|
||||
|
||||
const settings = (state = initialState, action) =>
|
||||
@@ -44,6 +45,13 @@ const settings = (state = initialState, action) =>
|
||||
return { ...state, advancedMode };
|
||||
}
|
||||
|
||||
case 'SET_VIDEO_RESOLUTION':
|
||||
{
|
||||
const { resolution } = action.payload;
|
||||
|
||||
return { ...state, resolution };
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user