2021-06-23 11:23:44 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { MEDIA_TYPE, type MediaType } from '../base/media/constants';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mapping between a media type and the witelist reducer key.
|
|
|
|
*/
|
|
|
|
export const MEDIA_TYPE_TO_WHITELIST_STORE_KEY: {[key: MediaType]: string} = {
|
|
|
|
[MEDIA_TYPE.AUDIO]: 'audioWhitelist',
|
|
|
|
[MEDIA_TYPE.VIDEO]: 'videoWhitelist'
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mapping between a media type and the pending reducer key.
|
|
|
|
*/
|
|
|
|
export const MEDIA_TYPE_TO_PENDING_STORE_KEY: {[key: MediaType]: string} = {
|
|
|
|
[MEDIA_TYPE.AUDIO]: 'pendingAudio',
|
|
|
|
[MEDIA_TYPE.VIDEO]: 'pendingVideo'
|
|
|
|
};
|
2021-09-15 08:28:44 +00:00
|
|
|
|
2022-05-06 07:27:01 +00:00
|
|
|
export const ASKED_TO_UNMUTE_NOTIFICATION_ID = 'asked-to-unmute';
|
2021-09-15 08:28:44 +00:00
|
|
|
export const ASKED_TO_UNMUTE_SOUND_ID = 'ASKED_TO_UNMUTE_SOUND';
|
|
|
|
|
|
|
|
export const AUDIO_MODERATION_NOTIFICATION_ID = 'audio-moderation';
|
|
|
|
export const VIDEO_MODERATION_NOTIFICATION_ID = 'video-moderation';
|
|
|
|
export const CS_MODERATION_NOTIFICATION_ID = 'screensharing-moderation';
|
|
|
|
|
|
|
|
export const MODERATION_NOTIFICATIONS = {
|
|
|
|
[MEDIA_TYPE.AUDIO]: AUDIO_MODERATION_NOTIFICATION_ID,
|
2022-03-15 17:24:49 +00:00
|
|
|
[MEDIA_TYPE.SCREENSHARE]: CS_MODERATION_NOTIFICATION_ID,
|
2021-09-15 08:28:44 +00:00
|
|
|
[MEDIA_TYPE.VIDEO]: VIDEO_MODERATION_NOTIFICATION_ID,
|
|
|
|
[MEDIA_TYPE.PRESENTER]: CS_MODERATION_NOTIFICATION_ID
|
|
|
|
};
|