Bläddra i källkod

misc: set worker names

master
Saúl Ibarra Corretgé 5 år sedan
förälder
incheckning
6ce27ef10d

+ 2
- 2
react/features/local-recording/recording/flac/FlacAdapter.js Visa fil

248
         // only when flac recording is in use.
248
         // only when flac recording is in use.
249
         try {
249
         try {
250
             // try load the minified version first
250
             // try load the minified version first
251
-            this._encoder = new Worker('/libs/flacEncodeWorker.min.js');
251
+            this._encoder = new Worker('/libs/flacEncodeWorker.min.js', { name: 'FLAC encoder worker' });
252
         } catch (exception1) {
252
         } catch (exception1) {
253
             // if failed, try unminified version
253
             // if failed, try unminified version
254
             try {
254
             try {
255
-                this._encoder = new Worker('/libs/flacEncodeWorker.js');
255
+                this._encoder = new Worker('/libs/flacEncodeWorker.js', { name: 'FLAC encoder worker' });
256
             } catch (exception2) {
256
             } catch (exception2) {
257
                 throw new Error('Failed to load flacEncodeWorker.');
257
                 throw new Error('Failed to load flacEncodeWorker.');
258
             }
258
             }

+ 1
- 1
react/features/stream-effects/blur/JitsiStreamBlurEffect.js Visa fil

43
         this._outputCanvasElement.getContext('2d');
43
         this._outputCanvasElement.getContext('2d');
44
         this._inputVideoElement = document.createElement('video');
44
         this._inputVideoElement = document.createElement('video');
45
 
45
 
46
-        this._maskFrameTimerWorker = new Worker(timerWorkerScript);
46
+        this._maskFrameTimerWorker = new Worker(timerWorkerScript, { name: 'Blur effect worker' });
47
         this._maskFrameTimerWorker.onmessage = this._onMaskFrameTimer;
47
         this._maskFrameTimerWorker.onmessage = this._onMaskFrameTimer;
48
     }
48
     }
49
 
49
 

+ 1
- 1
react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js Visa fil

64
 
64
 
65
         // Bind event handler so it is only bound once for every instance.
65
         // Bind event handler so it is only bound once for every instance.
66
         this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);
66
         this._onVideoFrameTimer = this._onVideoFrameTimer.bind(this);
67
-        this._videoFrameTimerWorker = new Worker(timerWorkerScript);
67
+        this._videoFrameTimerWorker = new Worker(timerWorkerScript, { name: 'Presenter effect worker' });
68
         this._videoFrameTimerWorker.onmessage = this._onVideoFrameTimer;
68
         this._videoFrameTimerWorker.onmessage = this._onVideoFrameTimer;
69
     }
69
     }
70
 
70
 

+ 1
- 1
react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.js Visa fil

46
         // Bind handlers such that they access the same instance.
46
         // Bind handlers such that they access the same instance.
47
         this._handleWorkerAction = this._handleWorkerAction.bind(this);
47
         this._handleWorkerAction = this._handleWorkerAction.bind(this);
48
         this._initScreenshotCapture = this._initScreenshotCapture.bind(this);
48
         this._initScreenshotCapture = this._initScreenshotCapture.bind(this);
49
-        this._streamWorker = new Worker(timerWorkerScript);
49
+        this._streamWorker = new Worker(timerWorkerScript, { name: 'Screenshot capture worker' });
50
         this._streamWorker.onmessage = this._handleWorkerAction;
50
         this._streamWorker.onmessage = this._handleWorkerAction;
51
     }
51
     }
52
 
52
 

Laddar…
Avbryt
Spara