Browse Source

fix(receiveVideoController): Do a deep copy of constraints for comparsion.

dev1
Jaya Allamsetty 4 years ago
parent
commit
5a6286d9e1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/qualitycontrol/ReceiveVideoController.js

+ 1
- 1
modules/qualitycontrol/ReceiveVideoController.js View File

@@ -223,7 +223,7 @@ export class ReceiveVideoController {
223 223
         if (this._receiverVideoConstraints) {
224 224
             // Filter out the local endpointId from the list of selected endpoints.
225 225
             const remoteEndpointIds = ids.filter(id => id !== this._conference.myUserId());
226
-            const oldConstraints = this._receiverVideoConstraints.constraints;
226
+            const oldConstraints = JSON.parse(JSON.stringify(this._receiverVideoConstraints.constraints));
227 227
 
228 228
             remoteEndpointIds.length && this._receiverVideoConstraints.updateSelectedEndpoints(remoteEndpointIds);
229 229
             const newConstraints = this._receiverVideoConstraints.constraints;

Loading…
Cancel
Save