2021-04-28 23:00:20 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
*
|
2021-04-28 23:00:20 +00:00
|
|
|
* @type {number}
|
|
|
|
*/
|
|
|
|
export const DEFAULT_LAST_N = 20;
|
|
|
|
|
2020-09-01 19:19:04 +00:00
|
|
|
/**
|
|
|
|
* The supported remote video resolutions. The values are currently based on
|
|
|
|
* available simulcast layers.
|
|
|
|
*
|
|
|
|
* @type {object}
|
|
|
|
*/
|
|
|
|
export const VIDEO_QUALITY_LEVELS = {
|
2020-10-06 20:42:38 +00:00
|
|
|
ULTRA: 2160,
|
2020-09-01 19:19:04 +00:00
|
|
|
HIGH: 720,
|
|
|
|
STANDARD: 360,
|
2021-05-19 23:23:40 +00:00
|
|
|
LOW: 180,
|
|
|
|
NONE: 0
|
2020-09-01 19:19:04 +00:00
|
|
|
};
|
2020-08-19 21:38:10 +00:00
|
|
|
|
2022-08-16 11:56:47 +00:00
|
|
|
/**
|
|
|
|
* Indicates unlimited video quality.
|
|
|
|
*/
|
|
|
|
export const VIDEO_QUALITY_UNLIMITED = -1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The maximum video quality from the VIDEO_QUALITY_LEVELS map.
|
|
|
|
*/
|
|
|
|
export const MAX_VIDEO_QUALITY = Math.max(...Object.values(VIDEO_QUALITY_LEVELS));
|
|
|
|
|
2020-08-19 21:38:10 +00:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
*
|
2020-08-19 21:38:10 +00:00
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
export const CFG_LVL_TO_APP_QUALITY_LVL = {
|
|
|
|
'low': VIDEO_QUALITY_LEVELS.LOW,
|
|
|
|
'standard': VIDEO_QUALITY_LEVELS.STANDARD,
|
2022-08-16 11:56:47 +00:00
|
|
|
'high': VIDEO_QUALITY_LEVELS.HIGH,
|
|
|
|
'ultra': VIDEO_QUALITY_LEVELS.ULTRA
|
2020-08-19 21:38:10 +00:00
|
|
|
};
|