mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 06:17:48 +00:00
Allows to adjust thresholds which control the video quality level in the thumbnail view. Changes the default behaviour to request the SD (360p) resolution only when the thumbnails are at least 360 pixels tall and the height of 720 is required for the high quality level. The thresholds can be configured with the 'videoQuality.minHeightForQualityLvl' config property. Check the description in the config.js for more details.
12 lines
332 B
JavaScript
12 lines
332 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* Selects the thumbnail height to the quality level mapping from the config.
|
|
*
|
|
* @param {Object} state - The redux state.
|
|
* @returns {Map<number,number>}
|
|
*/
|
|
export function getMinHeightForQualityLvlMap(state: Object): Map<number, number> {
|
|
return state['features/base/videoquality'].minHeightForQualityLvl;
|
|
}
|