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.

functions.js 518B

123456789101112131415161718
  1. // @flow
  2. import { getJitsiMeetGlobalNS, loadScript } from '../base/util';
  3. /**
  4. * Returns promise that resolves with the blur effect instance.
  5. *
  6. * @returns {Promise<JitsiStreamBlurEffect>} - Resolves with the blur effect instance.
  7. */
  8. export function getBlurEffect() {
  9. const ns = getJitsiMeetGlobalNS();
  10. if (ns.effects && ns.effects.createBlurEffect) {
  11. return ns.effects.createBlurEffect();
  12. }
  13. return loadScript('libs/video-blur-effect.min.js').then(() => ns.effects.createBlurEffect());
  14. }