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
misc: set worker names
Saúl Ibarra Corretgé6ce27ef10df6
diff --git a/react/features/local-recording/recording/flac/FlacAdapter.js b/react/features/local-recording/recording/flac/FlacAdapter.jsindex 715f34dfa6..a76697aceb 100644--- a/react/features/local-recording/recording/flac/FlacAdapter.js+++ b/react/features/local-recording/recording/flac/FlacAdapter.js@@ -248,11 +248,11 @@ export class FlacAdapter extends AbstractAudioContextAdapter {// only when flac recording is in use.try {// try load the minified version first- this._encoder = new Worker('/libs/flacEncodeWorker.min.js');+ this._encoder = new Worker('/libs/flacEncodeWorker.min.js', { name: 'FLAC encoder worker' });} catch (exception1) {// if failed, try unminified versiontry {- this._encoder = new Worker('/libs/flacEncodeWorker.js');+ this._encoder = new Worker('/libs/flacEncodeWorker.js', { name: 'FLAC encoder worker' });} catch (exception2) {throw new Error('Failed to load flacEncodeWorker.');}diff --git a/react/features/stream-effects/blur/JitsiStreamBlurEffect.js b/react/features/stream-effects/blur/JitsiStreamBlurEffect.jsindex 7425660299..105d541fb7 100644--- a/react/features/stream-effects/blur/JitsiStreamBlurEffect.js+++ b/react/features/stream-effects/blur/JitsiStreamBlurEffect.js@@ -43,7 +43,7 @@ export default class JitsiStreamBlurEffect {this._outputCanvasElement.getContext('2d');this._inputVideoElement = document.createElement('video');- this._maskFrameTimerWorker = new Worker(timerWorkerScript);+ this._maskFrameTimerWorker = new Worker(timerWorkerScript, { name: 'Blur effect worker' });this._maskFrameTimerWorker.onmessage = this._onMaskFrameTimer;}diff --git a/react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js b/react/features/stream-effects/presenter/JitsiStreamPresenterEffect.jsindex a3bf11643c..5943616c08 100644--- a/react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js+++ b/react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js@@ -64,7 +64,7 @@ export default class JitsiStreamPresenterEffect {// Bind event handler so it is only bound once for every instance.this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);- this._videoFrameTimerWorker = new Worker(timerWorkerScript);+ this._videoFrameTimerWorker = new Worker(timerWorkerScript, { name: 'Presenter effect worker' });this._videoFrameTimerWorker.onmessage = this._onVideoFrameTimer;}diff --git a/react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.js b/react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.jsindex ee2e2785ee..021100cb0e 100644--- a/react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.js+++ b/react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.js@@ -46,7 +46,7 @@ export default class ScreenshotCaptureEffect {// Bind handlers such that they access the same instance.this._handleWorkerAction = this._handleWorkerAction.bind(this);this._initScreenshotCapture = this._initScreenshotCapture.bind(this);- this._streamWorker = new Worker(timerWorkerScript);+ this._streamWorker = new Worker(timerWorkerScript, { name: 'Screenshot capture worker' });this._streamWorker.onmessage = this._handleWorkerAction;}