You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Filmstrip.js 1021B

12345678910111213141516171819202122232425262728293031
  1. /* global $, APP, interfaceConfig */
  2. import { getVerticalFilmstripVisibleAreaWidth, isFilmstripVisible } from '../../../react/features/filmstrip';
  3. const Filmstrip = {
  4. /**
  5. * Returns the height of filmstrip
  6. * @returns {number} height
  7. */
  8. getFilmstripHeight() {
  9. // FIXME Make it more clear the getFilmstripHeight check is used in
  10. // horizontal film strip mode for calculating how tall large video
  11. // display should be.
  12. if (isFilmstripVisible(APP.store) && !interfaceConfig.VERTICAL_FILMSTRIP) {
  13. return $('.filmstrip').outerHeight();
  14. }
  15. return 0;
  16. },
  17. /**
  18. * Returns the width of the vertical filmstip if the filmstrip is visible and 0 otherwise.
  19. *
  20. * @returns {number} - The width of the vertical filmstip if the filmstrip is visible and 0 otherwise.
  21. */
  22. getVerticalFilmstripWidth() {
  23. return isFilmstripVisible(APP.store) ? getVerticalFilmstripVisibleAreaWidth() : 0;
  24. }
  25. };
  26. export default Filmstrip;