浏览代码

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

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

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
      * Release any resources required by the rnnoise context this needs to be called
144
      * Release any resources required by the rnnoise context this needs to be called
136
      * before destroying any context that uses the processor.
145
      * before destroying any context that uses the processor.

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

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

正在加载...
取消
保存