Files
upstream-jitsi-meet/modules/UI/videolayout/Filmstrip.js
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

35 lines
1.0 KiB
JavaScript

/* global APP, interfaceConfig */
import {
getVerticalFilmstripVisibleAreaWidth,
isFilmstripVisible
} from '../../../react/features/filmstrip/functions';
const Filmstrip = {
/**
* Returns the height of filmstrip
* @returns {number} height
*/
getFilmstripHeight() {
// FIXME Make it more clear the getFilmstripHeight check is used in
// horizontal film strip mode for calculating how tall large video
// display should be.
if (isFilmstripVisible(APP.store) && !interfaceConfig.VERTICAL_FILMSTRIP) {
return document.querySelector('.filmstrip')?.offsetHeight ?? 0;
}
return 0;
},
/**
* Returns the width of the vertical filmstrip if the filmstrip is visible and 0 otherwise.
*
* @returns {number} - The width of the vertical filmstrip if the filmstrip is visible and 0 otherwise.
*/
getVerticalFilmstripWidth() {
return isFilmstripVisible(APP.store) ? getVerticalFilmstripVisibleAreaWidth() : 0;
}
};
export default Filmstrip;