Преглед на файлове

fix(ReceiverVideoController): Cache the new receiver constraints.

dev1
Jaya Allamsetty преди 4 години
родител
ревизия
46095de9e9
променени са 4 файла, в които са добавени 43 реда и са изтрити 2 реда
  1. 5
    1
      modules/qualitycontrol/ReceiveVideoController.js
  2. 35
    0
      package-lock.json
  3. 1
    0
      package.json
  4. 2
    1
      webpack-shared-config.js

+ 5
- 1
modules/qualitycontrol/ReceiveVideoController.js Целия файл

@@ -294,6 +294,10 @@ export class ReceiveVideoController {
294 294
 
295 295
         const constraintsChanged = this._receiverVideoConstraints.updateReceiverVideoConstraints(constraints);
296 296
 
297
-        constraintsChanged && this._rtc.setNewReceiverVideoConstraints(constraints);
297
+        if (constraintsChanged) {
298
+            this._lastN = constraints.lastN ?? this._lastN;
299
+            this._selectedEndpoints = constraints.selectedEndpoints ?? this._selectedEndpoints;
300
+            this._rtc.setNewReceiverVideoConstraints(constraints);
301
+        }
298 302
     }
299 303
 }

+ 35
- 0
package-lock.json Целия файл

@@ -609,6 +609,24 @@
609 609
         "@babel/plugin-syntax-json-strings": "^7.0.0"
610 610
       }
611 611
     },
612
+    "@babel/plugin-proposal-nullish-coalescing-operator": {
613
+      "version": "7.13.8",
614
+      "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.13.8.tgz",
615
+      "integrity": "sha512-iePlDPBn//UhxExyS9KyeYU7RM9WScAG+D3Hhno0PLJebAEpDZMocbDe64eqynhNAnwz/vZoL/q/QB2T1OH39A==",
616
+      "dev": true,
617
+      "requires": {
618
+        "@babel/helper-plugin-utils": "^7.13.0",
619
+        "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
620
+      },
621
+      "dependencies": {
622
+        "@babel/helper-plugin-utils": {
623
+          "version": "7.13.0",
624
+          "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz",
625
+          "integrity": "sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ==",
626
+          "dev": true
627
+        }
628
+      }
629
+    },
612 630
     "@babel/plugin-proposal-object-rest-spread": {
613 631
       "version": "7.0.0",
614 632
       "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0.tgz",
@@ -738,6 +756,23 @@
738 756
         "@babel/helper-plugin-utils": "^7.0.0"
739 757
       }
740 758
     },
759
+    "@babel/plugin-syntax-nullish-coalescing-operator": {
760
+      "version": "7.8.3",
761
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
762
+      "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
763
+      "dev": true,
764
+      "requires": {
765
+        "@babel/helper-plugin-utils": "^7.8.0"
766
+      },
767
+      "dependencies": {
768
+        "@babel/helper-plugin-utils": {
769
+          "version": "7.13.0",
770
+          "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.13.0.tgz",
771
+          "integrity": "sha512-ZPafIPSwzUlAoWT8DKs1W2VyF2gOWthGd5NGFMsBcMMol+ZhK+EQY/e6V96poa6PA/Bh+C9plWN0hXO1uB8AfQ==",
772
+          "dev": true
773
+        }
774
+      }
775
+    },
741 776
     "@babel/plugin-syntax-object-rest-spread": {
742 777
       "version": "7.0.0",
743 778
       "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0.tgz",

+ 1
- 0
package.json Целия файл

@@ -37,6 +37,7 @@
37 37
     "@babel/core": "7.5.5",
38 38
     "@babel/plugin-proposal-class-properties": "7.1.0",
39 39
     "@babel/plugin-proposal-export-namespace-from": "7.0.0",
40
+    "@babel/plugin-proposal-nullish-coalescing-operator": "7.13.8",
40 41
     "@babel/plugin-proposal-optional-chaining": "7.2.0",
41 42
     "@babel/plugin-transform-flow-strip-types": "7.0.0",
42 43
     "@babel/preset-env": "7.1.0",

+ 2
- 1
webpack-shared-config.js Целия файл

@@ -59,7 +59,8 @@ module.exports = {
59 59
                     '@babel/plugin-transform-flow-strip-types',
60 60
                     '@babel/plugin-proposal-class-properties',
61 61
                     '@babel/plugin-proposal-optional-chaining',
62
-                    '@babel/plugin-proposal-export-namespace-from'
62
+                    '@babel/plugin-proposal-export-namespace-from',
63
+                    '@babel/plugin-proposal-nullish-coalescing-operator'
63 64
                 ]
64 65
             },
65 66
             test: /\.js$/

Loading…
Отказ
Запис