mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 03:12:42 +00:00
* Update moderation in effect notifications Only display one notification for each media type. Display notification for keyboard shortcuts as well * Update muted remotely notification Display name of moderator in the notification * Fix indentation on moderation menu * Update text for video moderation * Added moderator label in participant pane * Update microphone icon in participant list For participants that speak, or are noisy, but aren't dominant speaker, the icon in the participant list will look the same as the dominant speaker icon but will not change their position in the list * Added sound for asked to unmute notification * Code review changes * Code review changes Use simple var instead of function for audio media state * Move constants to constants file * Moved constants from notifications to av-moderation
32 lines
1.0 KiB
JavaScript
32 lines
1.0 KiB
JavaScript
// @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'
|
|
};
|
|
|
|
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,
|
|
[MEDIA_TYPE.VIDEO]: VIDEO_MODERATION_NOTIFICATION_ID,
|
|
[MEDIA_TYPE.PRESENTER]: CS_MODERATION_NOTIFICATION_ID
|
|
};
|