Initial commit

This commit is contained in:
Andrei Gavrilescu 2019-11-01 12:20:47 +02:00 committed by Hristo Terezov
parent c494d6c48b
commit c1d261445e
3 changed files with 17 additions and 2 deletions

View File

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

View File

@ -131,6 +131,15 @@ export default class RnnoiseProcessor {
}
}
/**
* Such comment very wow.
*
* @returns {number}
*/
getSampleLength() {
return RNNOISE_SAMPLE_LENGTH;
}
/**
* Release any resources required by the rnnoise context this needs to be called
* before destroying any context that uses the processor.

View File

@ -33,12 +33,14 @@ function getPerformanceHints(size) {
const config = {
devServer: {
https: true,
logLevel: 'debug',
inline: true,
proxy: {
'/': {
bypass: devServerProxyBypass,
secure: false,
target: devServerProxyTarget
target: devServerProxyTarget,
logLevel: 'debug'
}
}
},
@ -276,11 +278,13 @@ module.exports = [
* target, undefined; otherwise, the path to the local file to be served.
*/
function devServerProxyBypass({ path }) {
console.log('Fetching path: ', path);
if (path.startsWith('/css/') || path.startsWith('/doc/')
|| path.startsWith('/fonts/') || path.startsWith('/images/')
|| path.startsWith('/sounds/')
|| path.startsWith('/static/')
|| path.endsWith('.wasm')) {
|| path.endsWith('.wasm')
|| path.startsWith('/libs/lib-jitsi-meet')) {
return path;
}