Make visibility of media controls configurable, fixes #267

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-02 22:33:59 +02:00
parent c461ee4eb7
commit c76c6d548a
21 changed files with 64 additions and 5 deletions
+9 -1
View File
@@ -7,7 +7,8 @@ const initialState =
// low, medium, high, veryhigh, ultra
resolution : window.config.defaultResolution || 'medium',
lastN : 4,
permanentTopBar : true
permanentTopBar : true,
hiddenControls : false
};
const settings = (state = initialState, action) =>
@@ -57,6 +58,13 @@ const settings = (state = initialState, action) =>
return { ...state, permanentTopBar };
}
case 'TOGGLE_HIDDEN_CONTROLS':
{
const hiddenControls = !state.hiddenControls;
return { ...state, hiddenControls };
}
case 'SET_VIDEO_RESOLUTION':
{
const { resolution } = action.payload;