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.web.tsx 977B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import JitsiMeetJS from '../base/lib-jitsi-meet';
  3. import { showNotification } from '../notifications/actions';
  4. import { NOTIFICATION_TIMEOUT_TYPE } from '../notifications/constants';
  5. // @ts-ignore
  6. import { RecordingLimitNotificationDescription } from './components';
  7. export * from './actions.any';
  8. /**
  9. * Signals that a started recording notification should be shown on the
  10. * screen for a given period.
  11. *
  12. * @param {string} streamType - The type of the stream ({@code file} or
  13. * {@code stream}).
  14. * @returns {showNotification}
  15. */
  16. export function showRecordingLimitNotification(streamType: string) {
  17. const isLiveStreaming = streamType === JitsiMeetJS.constants.recording.mode.STREAM;
  18. return showNotification({
  19. description: <RecordingLimitNotificationDescription isLiveStreaming = { isLiveStreaming } />,
  20. titleKey: isLiveStreaming ? 'dialog.liveStreaming' : 'dialog.recording'
  21. }, NOTIFICATION_TIMEOUT_TYPE.LONG);
  22. }