mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 17:47:46 +00:00
* feat: Initial UI part for A/V moderation. Based on https://github.com/jitsi/jitsi-meet/pull/7779 Co-authored-by: Gabriel Imre <gabriel.lucaci@8x8.com> * feat: Hides context menu in p2p or only moderators in the meeting. * feat: Show notifications on enable/disable. * feat(moderation): Add buttons to participant list & notifications * fix(moderation): Fix raised hand participant leaving * feat(moderation): Add support for video moderation * feat(moderation): Add mute all video to context menu * feat(moderation): Redo participants list 'More menu' * fix: Fixes clearing av_moderation table. * fix: Start moderation context menu * fix(moderation): Show notification if unapproved participant tries to start CS Co-authored-by: Gabriel Imre <gabriel.lucaci@8x8.com> Co-authored-by: Vlad Piersec <vlad.piersec@8x8.com>
51 lines
847 B
JavaScript
51 lines
847 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* The set of facing modes for camera.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const CAMERA_FACING_MODE = {
|
|
ENVIRONMENT: 'environment',
|
|
USER: 'user'
|
|
};
|
|
|
|
export type MediaType = 'audio' | 'video' | 'presenter';
|
|
|
|
/**
|
|
* The set of media types.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const MEDIA_TYPE: { AUDIO: MediaType, PRESENTER: MediaType, VIDEO: MediaType} = {
|
|
AUDIO: 'audio',
|
|
PRESENTER: 'presenter',
|
|
VIDEO: 'video'
|
|
};
|
|
|
|
|
|
/* eslint-disable no-bitwise */
|
|
|
|
/**
|
|
* The types of authorities which may mute/unmute the local video.
|
|
*
|
|
* @enum {number}
|
|
*/
|
|
export const VIDEO_MUTISM_AUTHORITY = {
|
|
AUDIO_ONLY: 1 << 0,
|
|
BACKGROUND: 1 << 1,
|
|
USER: 1 << 2
|
|
};
|
|
|
|
/* eslint-enable no-bitwise */
|
|
|
|
/**
|
|
* The types of video tracks.
|
|
*
|
|
* @enum {string}
|
|
*/
|
|
export const VIDEO_TYPE = {
|
|
CAMERA: 'camera',
|
|
DESKTOP: 'desktop'
|
|
};
|