Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

actions.web.tsx 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React from 'react';
  2. import { IStore } from '../app/types';
  3. import { openDialog } from '../base/dialog/actions';
  4. import JitsiMeetJS from '../base/lib-jitsi-meet';
  5. import { showNotification } from '../notifications/actions';
  6. import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
  7. import { showStartRecordingNotificationWithCallback } from './actions.any';
  8. import { StartRecordingDialog } from './components/Recording';
  9. import RecordingLimitNotificationDescription from './components/web/RecordingLimitNotificationDescription';
  10. export * from './actions.any';
  11. /**
  12. * Signals that a started recording notification should be shown on the
  13. * screen for a given period.
  14. *
  15. * @param {string} streamType - The type of the stream ({@code file} or
  16. * {@code stream}).
  17. * @returns {showNotification}
  18. */
  19. export function showRecordingLimitNotification(streamType: string) {
  20. const isLiveStreaming = streamType === JitsiMeetJS.constants.recording.mode.STREAM;
  21. return showNotification({
  22. description: <RecordingLimitNotificationDescription isLiveStreaming = { isLiveStreaming } />,
  23. titleKey: isLiveStreaming ? 'dialog.liveStreaming' : 'dialog.recording'
  24. }, NOTIFICATION_TIMEOUT_TYPE.LONG);
  25. }
  26. /**
  27. * Displays the notification suggesting to start the recording.
  28. *
  29. * @returns {void}
  30. */
  31. export function showStartRecordingNotification() {
  32. return (dispatch: IStore['dispatch']) => {
  33. const openDialogCallback = () => dispatch(openDialog(StartRecordingDialog));
  34. dispatch(showStartRecordingNotificationWithCallback(openDialogCallback));
  35. };
  36. }