Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334
  1. import { ReducerRegistry } from '../base/redux';
  2. import {
  3. SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY,
  4. SET_FILMSTRIP_VISIBILITY
  5. } from './actionTypes';
  6. const DEFAULT_STATE = {
  7. /**
  8. * By default start with remote videos hidden for 1-on-1 mode and rely on
  9. * other logic to invoke an action to make them visible when needed.
  10. */
  11. remoteVideosVisible: false,
  12. visible: true
  13. };
  14. ReducerRegistry.register(
  15. 'features/filmstrip',
  16. (state = DEFAULT_STATE, action) => {
  17. switch (action.type) {
  18. case SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY:
  19. return {
  20. ...state,
  21. remoteVideosVisible: action.remoteVideosVisible
  22. };
  23. case SET_FILMSTRIP_VISIBILITY:
  24. return {
  25. ...state,
  26. visible: action.visible
  27. };
  28. }
  29. return state;
  30. });