Pārlūkot izejas kodu

fix(RTCUtils) drop unnecessary variable

master
Saúl Ibarra Corretgé 6 mēnešus atpakaļ
vecāks
revīzija
4cb92f03e0
2 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1
    1
      modules/RTC/RTC.js
  2. 0
    2
      modules/RTC/RTCUtils.js

+ 1
- 1
modules/RTC/RTC.js Parādīt failu

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

+ 0
- 2
modules/RTC/RTCUtils.js Parādīt failu

277
                 });
277
                 });
278
         }
278
         }
279
 
279
 
280
-        this.pcConstraints = {};
281
-
282
         screenObtainer.init(options);
280
         screenObtainer.init(options);
283
 
281
 
284
         this.enumerateDevices(ds => {
282
         this.enumerateDevices(ds => {

Notiek ielāde…
Atcelt
Saglabāt