2022-08-30 08:47:55 +00:00
|
|
|
/* global APP, interfaceConfig */
|
|
|
|
|
|
|
|
import $ from 'jquery';
|
2016-02-24 21:05:24 +00:00
|
|
|
|
2020-02-10 15:27:43 +00:00
|
|
|
import { getVerticalFilmstripVisibleAreaWidth, isFilmstripVisible } from '../../../react/features/filmstrip';
|
2016-02-24 21:05:24 +00:00
|
|
|
|
2017-04-10 17:59:44 +00:00
|
|
|
const Filmstrip = {
|
2016-11-03 13:12:45 +00:00
|
|
|
/**
|
|
|
|
* Returns the height of filmstrip
|
|
|
|
* @returns {number} height
|
|
|
|
*/
|
2017-04-10 17:59:44 +00:00
|
|
|
getFilmstripHeight() {
|
2017-05-17 22:40:41 +00:00
|
|
|
// FIXME Make it more clear the getFilmstripHeight check is used in
|
|
|
|
// horizontal film strip mode for calculating how tall large video
|
|
|
|
// display should be.
|
2020-01-24 16:28:47 +00:00
|
|
|
if (isFilmstripVisible(APP.store) && !interfaceConfig.VERTICAL_FILMSTRIP) {
|
|
|
|
return $('.filmstrip').outerHeight();
|
2016-02-24 21:05:24 +00:00
|
|
|
}
|
2017-10-12 23:02:29 +00:00
|
|
|
|
|
|
|
return 0;
|
2017-06-14 23:52:59 +00:00
|
|
|
},
|
2017-10-12 23:02:29 +00:00
|
|
|
|
2017-06-14 23:52:59 +00:00
|
|
|
/**
|
2020-02-10 15:27:43 +00:00
|
|
|
* Returns the width of the vertical filmstip if the filmstrip is visible and 0 otherwise.
|
|
|
|
*
|
|
|
|
* @returns {number} - The width of the vertical filmstip if the filmstrip is visible and 0 otherwise.
|
2017-06-14 23:52:59 +00:00
|
|
|
*/
|
2020-02-10 15:27:43 +00:00
|
|
|
getVerticalFilmstripWidth() {
|
|
|
|
return isFilmstripVisible(APP.store) ? getVerticalFilmstripVisibleAreaWidth() : 0;
|
2016-09-28 21:31:40 +00:00
|
|
|
}
|
2016-02-24 21:05:24 +00:00
|
|
|
};
|
|
|
|
|
2017-04-10 17:59:44 +00:00
|
|
|
export default Filmstrip;
|