Просмотр исходного кода

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

dev1
Jaya Allamsetty 4 лет назад
Родитель
Сommit
5a6286d9e1
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      modules/qualitycontrol/ReceiveVideoController.js

+ 1
- 1
modules/qualitycontrol/ReceiveVideoController.js Просмотреть файл

@@ -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;

Загрузка…
Отмена
Сохранить