Przeglądaj źródła

misc: set worker names

master
Saúl Ibarra Corretgé 5 lat temu
rodzic
commit
6ce27ef10d

+ 2
- 2
react/features/local-recording/recording/flac/FlacAdapter.js Wyświetl plik

@@ -248,11 +248,11 @@ export class FlacAdapter extends AbstractAudioContextAdapter {
248 248
         // only when flac recording is in use.
249 249
         try {
250 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 252
         } catch (exception1) {
253 253
             // if failed, try unminified version
254 254
             try {
255
-                this._encoder = new Worker('/libs/flacEncodeWorker.js');
255
+                this._encoder = new Worker('/libs/flacEncodeWorker.js', { name: 'FLAC encoder worker' });
256 256
             } catch (exception2) {
257 257
                 throw new Error('Failed to load flacEncodeWorker.');
258 258
             }

+ 1
- 1
react/features/stream-effects/blur/JitsiStreamBlurEffect.js Wyświetl plik

@@ -43,7 +43,7 @@ export default class JitsiStreamBlurEffect {
43 43
         this._outputCanvasElement.getContext('2d');
44 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 47
         this._maskFrameTimerWorker.onmessage = this._onMaskFrameTimer;
48 48
     }
49 49
 

+ 1
- 1
react/features/stream-effects/presenter/JitsiStreamPresenterEffect.js Wyświetl plik

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

+ 1
- 1
react/features/stream-effects/screenshot-capture/ScreenshotCaptureEffect.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz