You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import {
  2. SET_FILMSTRIP_REMOTE_VIDEOS_COUNT,
  3. SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY,
  4. SET_FILMSTRIP_VISIBILITY
  5. } from './actionTypes';
  6. /**
  7. * Sets the visibility of remote videos in the filmstrip.
  8. *
  9. * @param {boolean} remoteVideosVisible - Whether or not remote videos in the
  10. * filmstrip should be visible.
  11. * @returns {{
  12. * type: SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY,
  13. * remoteVideosVisible: boolean
  14. * }}
  15. */
  16. export function setFilmstripRemoteVideosVisibility(remoteVideosVisible) {
  17. return {
  18. type: SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY,
  19. remoteVideosVisible
  20. };
  21. }
  22. /**
  23. * Sets how many remote videos are currently in the filmstrip.
  24. *
  25. * @param {number} remoteVideosCount - The number of remote videos.
  26. * @returns {{
  27. * type: SET_FILMSTRIP_REMOTE_VIDEOS_COUNT,
  28. * remoteVideosCount: number
  29. * }}
  30. */
  31. export function setFilmstripRemoteVideosCount(remoteVideosCount) {
  32. return {
  33. type: SET_FILMSTRIP_REMOTE_VIDEOS_COUNT,
  34. remoteVideosCount
  35. };
  36. }
  37. /**
  38. * Sets if the entire filmstrip should be visible.
  39. *
  40. * @param {boolean} visible - Whether not the filmstrip is visible.
  41. * @returns {{
  42. * type: SET_FILMSTRIP_VISIBILITY,
  43. * visible: boolean
  44. * }}
  45. */
  46. export function setFilmstripVisibility(visible) {
  47. return {
  48. type: SET_FILMSTRIP_VISIBILITY,
  49. visible
  50. };
  51. }