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.

12345678910111213141516171819202122232425262728293031
  1. import { SET_SHARED_VIDEO_STATUS, TOGGLE_SHARED_VIDEO } from './actionTypes';
  2. /**
  3. * Updates the current known status of the shared YouTube video.
  4. *
  5. * @param {string} status - The current status of the YouTube video being
  6. * shared.
  7. * @returns {{
  8. * type: SET_SHARED_VIDEO_STATUS,
  9. * status: string
  10. * }}
  11. */
  12. export function setSharedVideoStatus(status) {
  13. return {
  14. type: SET_SHARED_VIDEO_STATUS,
  15. status
  16. };
  17. }
  18. /**
  19. * Starts the flow for starting or stopping a shared YouTube video.
  20. *
  21. * @returns {{
  22. * type: TOGGLE_SHARED_VIDEO
  23. * }}
  24. */
  25. export function toggleSharedVideo() {
  26. return {
  27. type: TOGGLE_SHARED_VIDEO
  28. };
  29. }