* feat(tile-view): initial implementation for tile view - Modify the classname on the app root so layout can adjust depending on the desired layout mode--vertical filmstrip, horizontal filmstrip, and tile view. - Create a button for toggling tile view. - Add a StateListenerRegistry to automatically update the selected participant and max receiver frame height on tile view toggle. - Rezise thumbnails when switching in and out of tile view. - Move the local video when switching in and out of tile view. - Update reactified pieces of thumbnails when switching in and out of tile view. - Cap the max receiver video quality in tile view based on tile size. - Use CSS to hide UI components that should not display in tile view. - Signal follow me changes. * change local video id for tests * change approach: leverage more css * squash: fix some formatting * squash: prevent pinning, hide pin border in tile view * squash: change logic for maxReceiverQuality due to sidestepping resizing logic * squash: fix typo, columns configurable, remove unused constants * squash: resize with js again * squash: use yana's math for calculating tile size
21 lines
420 B
JavaScript
21 lines
420 B
JavaScript
// @flow
|
|
|
|
import { SET_TILE_VIEW } from './actionTypes';
|
|
|
|
/**
|
|
* Creates a (redux) action which signals to set the UI layout to be tiled view
|
|
* or not.
|
|
*
|
|
* @param {boolean} enabled - Whether or not tile view should be shown.
|
|
* @returns {{
|
|
* type: SET_TILE_VIEW,
|
|
* enabled: boolean
|
|
* }}
|
|
*/
|
|
export function setTileView(enabled: boolean) {
|
|
return {
|
|
type: SET_TILE_VIEW,
|
|
enabled
|
|
};
|
|
}
|