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 668B

123456789101112131415161718192021222324
  1. import { RECORDING_SESSION_UPDATED } from './actionTypes';
  2. /**
  3. * Updates the known state for a given recording session.
  4. *
  5. * @param {Object} session - The new state to merge with the existing state in
  6. * redux.
  7. * @returns {{
  8. * type: RECORDING_SESSION_UPDATED,
  9. * sessionData: Object
  10. * }}
  11. */
  12. export function updateRecordingSessionData(session) {
  13. return {
  14. type: RECORDING_SESSION_UPDATED,
  15. sessionData: {
  16. error: session.getError(),
  17. id: session.getID(),
  18. liveStreamViewURL: session.getLiveStreamViewURL(),
  19. mode: session.getMode(),
  20. status: session.getStatus()
  21. }
  22. };
  23. }