Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(build,rnnoise) don't use an external bundle for the effect
Saúl Ibarra Corretgé30d0aabacaa4
diff --git a/Makefile b/Makefileindex 7f07f4f2f1..6866b249e7 100644--- a/Makefile+++ b/Makefile@@ -51,8 +51,6 @@ deploy-appbundle:$(OUTPUT_DIR)/analytics-ga.js \$(BUILD_DIR)/analytics-ga.min.js \$(BUILD_DIR)/analytics-ga.min.map \- $(BUILD_DIR)/rnnoise-processor.min.js \- $(BUILD_DIR)/rnnoise-processor.min.map \$(BUILD_DIR)/close3.min.js \$(BUILD_DIR)/close3.min.map \$(DEPLOY_DIR)diff --git a/react/features/conference/functions.web.js b/react/features/conference/functions.web.jsindex 3544e72ae6..e971ced20b 100644--- a/react/features/conference/functions.web.js+++ b/react/features/conference/functions.web.js@@ -6,7 +6,7 @@ import { toState } from '../base/redux';import { getBackendSafePath, getJitsiMeetGlobalNS } from '../base/util';import { getVpaasBillingId } from '../billing-counter/functions';import { showWarningNotification } from '../notifications';-import { createRnnoiseProcessorPromise } from '../rnnoise';+import { createRnnoiseProcessor } from '../stream-effects/rnnoise';export * from './functions.any';@@ -84,7 +84,7 @@ export function getConferenceOptions(stateful) {options.applicationName = getName();options.getWiFiStatsMethod = getWiFiStatsMethod;- options.createVADProcessor = createRnnoiseProcessorPromise;+ options.createVADProcessor = createRnnoiseProcessor;options.billingId = getVpaasBillingId(state);// Disable CallStats, if requessted.diff --git a/react/features/rnnoise/functions.js b/react/features/rnnoise/functions.jsdeleted file mode 100644index 9d18696026..0000000000--- a/react/features/rnnoise/functions.js+++ /dev/null@@ -1,27 +0,0 @@-// @flow--import { getJitsiMeetGlobalNS, loadScript } from '../base/util';--let loadRnnoisePromise;--/**- * Returns promise that resolves with a RnnoiseProcessor instance.- *- * @returns {Promise<RnnoiseProcessor>} - Resolves with the blur effect instance.- */-export function createRnnoiseProcessorPromise() {- // Subsequent calls should not attempt to load the script multiple times.- if (!loadRnnoisePromise) {- loadRnnoisePromise = loadScript('libs/rnnoise-processor.min.js');- }-- return loadRnnoisePromise.then(() => {- const ns = getJitsiMeetGlobalNS();-- if (ns?.effects?.rnnoise?.createRnnoiseProcessor) {- return ns.effects.rnnoise.createRnnoiseProcessor();- }-- throw new Error('Rnnoise module binding createRnnoiseProcessor not found!');- });-}diff --git a/react/features/rnnoise/index.js b/react/features/rnnoise/index.jsdeleted file mode 100644index 9142d34e18..0000000000--- a/react/features/rnnoise/index.js+++ /dev/null@@ -1,2 +0,0 @@--export * from './functions';diff --git a/webpack.config.js b/webpack.config.jsindex bee4677057..98e585afc0 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -240,26 +240,6 @@ module.exports = [performance: getPerformanceHints(128 * 1024)}),- // Because both virtual-background-effect and rnnoise-processor modules are loaded- // in a lazy manner using the loadScript function with a hard coded name,- // i.e.loadScript('libs/rnnoise-processor.min.js'), webpack dev server- // won't know how to properly load them using the default config filename- // and sourceMapFilename parameters which target libs without .min in dev- // mode. Thus we change these modules to have the same filename in both- // prod and dev mode.- Object.assign({}, config, {- entry: {- 'rnnoise-processor': './react/features/stream-effects/rnnoise/index.js'- },- output: Object.assign({}, config.output, {- library: [ 'JitsiMeetJS', 'app', 'effects', 'rnnoise' ],- libraryTarget: 'window',- filename: '[name].min.js',- sourceMapFilename: '[name].min.map'- }),- performance: getPerformanceHints(30 * 1024)- }),-Object.assign({}, config, {entry: {'external_api': './modules/API/external/index.js'