瀏覽代碼

Initial commit

j8
Andrei Gavrilescu 5 年之前
父節點
當前提交
c1d261445e
共有 3 個檔案被更改,包括 17 行新增2 行删除
  1. 2
    0
      conference.js
  2. 9
    0
      react/features/stream-effects/rnnoise/RnnoiseProcessor.js
  3. 6
    2
      webpack.config.js

+ 2
- 0
conference.js 查看文件

@@ -120,6 +120,7 @@ import { suspendDetected } from './react/features/power-monitor';
120 120
 import { setSharedVideoStatus } from './react/features/shared-video';
121 121
 import { createPresenterEffect } from './react/features/stream-effects/presenter';
122 122
 import { endpointMessageReceived } from './react/features/subtitles';
123
+import { createRnnoiseProcessorPromise } from './react/features/rnnoise';
123 124
 
124 125
 const logger = require('jitsi-meet-logger').getLogger(__filename);
125 126
 
@@ -1267,6 +1268,7 @@ export default {
1267 1268
         options.applicationName = interfaceConfig.APP_NAME;
1268 1269
         options.getWiFiStatsMethod = this._getWiFiStatsMethod;
1269 1270
         options.confID = `${locationURL.host}${locationURL.pathname}`;
1271
+        options.vadProcessor = createRnnoiseProcessorPromise;
1270 1272
 
1271 1273
         return options;
1272 1274
     },

+ 9
- 0
react/features/stream-effects/rnnoise/RnnoiseProcessor.js 查看文件

@@ -131,6 +131,15 @@ export default class RnnoiseProcessor {
131 131
         }
132 132
     }
133 133
 
134
+    /**
135
+     * Such comment very wow.
136
+     *
137
+     * @returns {number}
138
+     */
139
+    getSampleLength() {
140
+        return RNNOISE_SAMPLE_LENGTH;
141
+    }
142
+
134 143
     /**
135 144
      * Release any resources required by the rnnoise context this needs to be called
136 145
      * before destroying any context that uses the processor.

+ 6
- 2
webpack.config.js 查看文件

@@ -33,12 +33,14 @@ function getPerformanceHints(size) {
33 33
 const config = {
34 34
     devServer: {
35 35
         https: true,
36
+        logLevel: 'debug',
36 37
         inline: true,
37 38
         proxy: {
38 39
             '/': {
39 40
                 bypass: devServerProxyBypass,
40 41
                 secure: false,
41
-                target: devServerProxyTarget
42
+                target: devServerProxyTarget,
43
+                logLevel: 'debug'
42 44
             }
43 45
         }
44 46
     },
@@ -276,11 +278,13 @@ module.exports = [
276 278
  * target, undefined; otherwise, the path to the local file to be served.
277 279
  */
278 280
 function devServerProxyBypass({ path }) {
281
+    console.log('Fetching path: ', path);
279 282
     if (path.startsWith('/css/') || path.startsWith('/doc/')
280 283
             || path.startsWith('/fonts/') || path.startsWith('/images/')
281 284
             || path.startsWith('/sounds/')
282 285
             || path.startsWith('/static/')
283
-            || path.endsWith('.wasm')) {
286
+            || path.endsWith('.wasm')
287
+            || path.startsWith('/libs/lib-jitsi-meet')) {
284 288
         return path;
285 289
     }
286 290
 

Loading…
取消
儲存