Hide toolbars after 10 seconds
This commit is contained in:
@@ -5,7 +5,8 @@ const initialState =
|
||||
activeSpeakerName : null,
|
||||
showSettings : false,
|
||||
advancedMode : false,
|
||||
fullScreenConsumer : null // ConsumerID
|
||||
fullScreenConsumer : null, // ConsumerID
|
||||
toolbarsVisible : true
|
||||
};
|
||||
|
||||
const room = (state = initialState, action) =>
|
||||
@@ -58,6 +59,12 @@ const room = (state = initialState, action) =>
|
||||
return { ...state, fullScreenConsumer: currentConsumer ? null : consumerId };
|
||||
}
|
||||
|
||||
case 'SET_TOOLBARS_VISIBLE':
|
||||
{
|
||||
const { toolbarsVisible } = action.payload;
|
||||
|
||||
return { ...state, toolbarsVisible };
|
||||
}
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -369,6 +369,11 @@ export const toggleConsumerFullscreen = (consumerId) =>
|
||||
};
|
||||
};
|
||||
|
||||
export const setToolbarsVisible = (toolbarsVisible) => ({
|
||||
type : 'SET_TOOLBARS_VISIBLE',
|
||||
payload : { toolbarsVisible }
|
||||
});
|
||||
|
||||
export const increaseBadge = () =>
|
||||
{
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user