jiti-meet/react/features/video-quality/constants.ts

33 lines
772 B
TypeScript
Raw Normal View History

/**
* Default last-n value used to be used for "HD" video quality setting when no channelLastN value is specified.
2021-11-04 21:10:43 +00:00
*
* @type {number}
*/
export const DEFAULT_LAST_N = 20;
/**
* The supported remote video resolutions. The values are currently based on
* available simulcast layers.
*
* @type {object}
*/
export const VIDEO_QUALITY_LEVELS = {
ULTRA: 2160,
HIGH: 720,
STANDARD: 360,
LOW: 180,
NONE: 0
};
/**
* Maps quality level names used in the config.videoQuality.minHeightForQualityLvl to the quality level constants used
* by the application.
2021-11-04 21:10:43 +00:00
*
* @type {Object}
*/
export const CFG_LVL_TO_APP_QUALITY_LVL = {
'low': VIDEO_QUALITY_LEVELS.LOW,
'standard': VIDEO_QUALITY_LEVELS.STANDARD,
'high': VIDEO_QUALITY_LEVELS.HIGH
};