Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
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.
jitsi-meet/react/features/blur/functions.js

19 lines
518 B

// @flow
import { getJitsiMeetGlobalNS, loadScript } from '../base/util';
/**
* Returns promise that resolves with the blur effect instance.
*
* @returns {Promise<JitsiStreamBlurEffect>} - Resolves with the blur effect instance.
*/
export function getBlurEffect() {
const ns = getJitsiMeetGlobalNS();
if (ns.effects && ns.effects.createBlurEffect) {
return ns.effects.createBlurEffect();
}
return loadScript('libs/video-blur-effect.min.js').then(() => ns.effects.createBlurEffect());
}