Files
jitsi-meet/react/features/base/media/constants.ts
Jaya Allamsetty f3e4c57036 Remove legacy signaling and legacy SS mode. (#12499)
* fix(connection-status): remove unused participant connectionStatus.
Always use trackStreamingStatus now that legacy endpoint based signaling has been removed.

* remove the check for source-name signaling.
Default to source-name signaling always.

* Remove the check for multi-stream mode.
Make that the default mode and remove the support for legacy SS mode.

* Remove presenter mode.

* update latest@lib-jitsi-meet
2022-11-08 14:15:49 -05:00

62 lines
1.1 KiB
TypeScript

/**
* The set of facing modes for camera.
*
* @enum {string}
*/
export const CAMERA_FACING_MODE = {
ENVIRONMENT: 'environment',
USER: 'user'
};
export type MediaType = 'audio' | 'video' | 'screenshare';
/**
* The set of media types.
*
* @enum {string}
*/
export const MEDIA_TYPE: { [key: string]: 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 = {
AUDIO_ONLY: 1 << 0,
USER: 1 << 2
};
/**
* 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,
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';