snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
74
react/features/base/media/constants.ts
Normal file
74
react/features/base/media/constants.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* The set of facing modes for camera.
|
||||
*
|
||||
* @enum {string}
|
||||
*/
|
||||
export const CAMERA_FACING_MODE: Record<string, string> = {
|
||||
ENVIRONMENT: 'environment',
|
||||
USER: 'user'
|
||||
};
|
||||
|
||||
export type MediaType = 'audio' | 'video' | 'screenshare';
|
||||
|
||||
/**
|
||||
* The set of media types.
|
||||
*
|
||||
* @enum {string}
|
||||
*/
|
||||
export const MEDIA_TYPE: {
|
||||
AUDIO: MediaType;
|
||||
SCREENSHARE: MediaType;
|
||||
VIDEO: MediaType;
|
||||
} = {
|
||||
AUDIO: 'audio',
|
||||
SCREENSHARE: 'screenshare',
|
||||
VIDEO: 'video'
|
||||
};
|
||||
|
||||
|
||||
/* eslint-disable no-bitwise */
|
||||
|
||||
/**
|
||||
* The types of authorities which may mute/unmute the local screenshare.
|
||||
*
|
||||
* @enum {number}
|
||||
*/
|
||||
export const SCREENSHARE_MUTISM_AUTHORITY = {
|
||||
LOW_BANDWIDTH_MODE: 1 << 0,
|
||||
USER: 1 << 2
|
||||
};
|
||||
|
||||
/**
|
||||
* The languages supported for audio files.
|
||||
*/
|
||||
export enum AudioSupportedLanguage {
|
||||
en = 'en',
|
||||
fr = 'fr',
|
||||
frCA = 'frCA'
|
||||
}
|
||||
|
||||
/**
|
||||
* The types of authorities which may mute/unmute the local video.
|
||||
*
|
||||
* @enum {number}
|
||||
*/
|
||||
export const VIDEO_MUTISM_AUTHORITY = {
|
||||
LOW_BANDWIDTH_MODE: 1 << 0,
|
||||
BACKGROUND: 1 << 1,
|
||||
USER: 1 << 2,
|
||||
CAR_MODE: 1 << 3
|
||||
};
|
||||
|
||||
/* eslint-enable no-bitwise */
|
||||
|
||||
/**
|
||||
* The types of video tracks.
|
||||
*
|
||||
* @enum {string}
|
||||
*/
|
||||
export const VIDEO_TYPE: { [key: string]: VideoType; } = {
|
||||
CAMERA: 'camera',
|
||||
DESKTOP: 'desktop'
|
||||
};
|
||||
|
||||
export type VideoType = 'camera' | 'desktop';
|
||||
Reference in New Issue
Block a user