您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }