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

1234567891011121314151617181920212223242526
  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. import RecordingLimitNotificationDescription from './components/web/RecordingLimitNotificationDescription';
  6. export * from './actions.any';
  7. /**
  8. * Signals that a started recording notification should be shown on the
  9. * screen for a given period.
  10. *
  11. * @param {string} streamType - The type of the stream ({@code file} or
  12. * {@code stream}).
  13. * @returns {showNotification}
  14. */
  15. export function showRecordingLimitNotification(streamType: string) {
  16. const isLiveStreaming = streamType === JitsiMeetJS.constants.recording.mode.STREAM;
  17. return showNotification({
  18. description: <RecordingLimitNotificationDescription isLiveStreaming = { isLiveStreaming } />,
  19. titleKey: isLiveStreaming ? 'dialog.liveStreaming' : 'dialog.recording'
  20. }, NOTIFICATION_TIMEOUT_TYPE.LONG);
  21. }