Przeglądaj źródła

fix(RTCUtils) drop unnecessary variable

master
Saúl Ibarra Corretgé 6 miesięcy temu
rodzic
commit
4cb92f03e0
2 zmienionych plików z 1 dodań i 3 usunięć
  1. 1
    1
      modules/RTC/RTC.js
  2. 0
    2
      modules/RTC/RTCUtils.js

+ 1
- 1
modules/RTC/RTC.js Wyświetl plik

@@ -373,7 +373,7 @@ export default class RTC extends Listenable {
373 373
      * @return {TraceablePeerConnection}
374 374
      */
375 375
     createPeerConnection(signaling, pcConfig, isP2P, options) {
376
-        const pcConstraints = cloneDeep(RTCUtils.pcConstraints);
376
+        const pcConstraints = {};
377 377
 
378 378
         if (options.enableInsertableStreams) {
379 379
             logger.debug('E2EE - setting insertable streams constraints');

+ 0
- 2
modules/RTC/RTCUtils.js Wyświetl plik

@@ -277,8 +277,6 @@ class RTCUtils extends Listenable {
277 277
                 });
278 278
         }
279 279
 
280
-        this.pcConstraints = {};
281
-
282 280
         screenObtainer.init(options);
283 281
 
284 282
         this.enumerateDevices(ds => {

Ładowanie…
Anuluj
Zapisz